Part Number Hot Search : 
4CEXXXX FST3112 3102A M5243 1060C 00250 BYD37 R30L4
Product Description
Full Text Search
 

To Download MC68HLC705KJ1C Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  mc68hc705kj1/d r e v . 2.0 mc68hc705kj1 mc68hsc705kj1 mc68hrc705kj1 mc68hlc705kj1 hcmos mic r ocont r oller unit techni c al da ta b oo k hc 5
technical data mc68hc705kj1 rev. 2.0 2 technical data motorola technical data motorola reserves the right to make changes without further notice to any products herein to improve reliability, function or design. motorola does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the motorola product could create a situation where personal injury or death may occur. should buyer purchase or use motorola products for any such unintended or unauthorized application, buyer shall indemnify and hold motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that motorola was negligent regarding the design or manufacture of the part. motorola, inc., 2000
mc68hc705kj1 rev. 2.0 technical data motorola list of sections 3 technical data ?mc68hc705kj1 list of sections section 1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 section 2. pin descriptions . . . . . . . . . . . . . . . . . . . . . . . 23 section 3. memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 section 4. central processor unit (cpu) . . . . . . . . . . . . 41 section 5. resets and interrupts . . . . . . . . . . . . . . . . . . . 63 section 6. low-power modes. . . . . . . . . . . . . . . . . . . . . . 73 section 7. parallel i/o ports . . . . . . . . . . . . . . . . . . . . . . . 81 section 8. computer operating properly module (cop) . . . . . . . . . . . . . . . . . . . . . . . . . 93 section 9. external interrupt module (irq) . . . . . . . . . . . 97 section 10. multifunction timer module . . . . . . . . . . . . 105 section 11. electrical specifications . . . . . . . . . . . . . . . 113 section 12. mechanical specifications . . . . . . . . . . . . . 127 section 13. ordering information . . . . . . . . . . . . . . . . . 131 appendix a. mc68hrc705kj1 . . . . . . . . . . . . . . . . . . . 133 appendix b. mc68hlc705kj1. . . . . . . . . . . . . . . . . . . . 139
technical data mc68hc705kj1 rev. 2.0 4 list of sections motorola list of sections
mc68hc705kj1 rev. 2.0 technical data motorola table of contents 5 technical data ?mc68hc705kj1 table of contents section 1. introduction 1.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 1.2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 1.3 structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 1.4 programmable options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 section 2. pin descriptions 2.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 2.2 pin assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 2.3 pin functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 2.3.1 v dd and v ss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 2.3.2 osc1 and osc2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 2.3.2.1 crystal oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 2.3.2.2 ceramic resonator oscillator . . . . . . . . . . . . . . . . . . . . .26 2.3.2.3 rc oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.2.4 external clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.3 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.4 irq/v pp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.3.5 pa0?a7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.3.6 pb2 and pb3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
technical data mc68hc705kj1 rev. 2.0 6 table of contents motorola table of contents section 3. memory 3.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 3.2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 3.3 memory map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 3.4 input/output register summary . . . . . . . . . . . . . . . . . . . . . . .33 3.5 ram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 3.6 eprom/otprom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 3.6.1 eprom/otprom programming . . . . . . . . . . . . . . . . . . . . .36 3.6.2 eprom programming register . . . . . . . . . . . . . . . . . . . . .36 3.6.3 eprom erasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 3.7 mask option register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 3.8 eprom programming characteristics . . . . . . . . . . . . . . . . . . .40 section 4. central processor unit (cpu) 4.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 4.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 4.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 4.4 cpu control unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 4.5 arithmetic/logic unit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 4.6 cpu registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 4.6.1 accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 4.6.2 index register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 4.6.3 stack pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 4.6.4 program counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 4.6.5 condition code register . . . . . . . . . . . . . . . . . . . . . . . . . . .47
table of contents mc68hc705kj1 rev. 2.0 technical data motorola table of contents 7 4.7 instruction set. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 4.7.1 addressing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 4.7.1.1 inherent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.2 immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.3 direct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.4 extended . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.5 indexed, no offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.6 indexed, 8-bit offset . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 4.7.1.7 indexed, 16-bit offset . . . . . . . . . . . . . . . . . . . . . . . . . . .50 4.7.1.8 relative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 4.7.2 instruction types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 4.7.2.1 register/memory instructions . . . . . . . . . . . . . . . . . . . . .51 4.7.2.2 read-modify-write instructions . . . . . . . . . . . . . . . . . . . .52 4.7.2.3 jump/branch instructions. . . . . . . . . . . . . . . . . . . . . . . . .53 4.7.2.4 bit manipulation instructions . . . . . . . . . . . . . . . . . . . . . .55 4.7.2.5 control instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 4.7.3 instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . .56 section 5. resets and interrupts 5.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63 5.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63 5.3 resets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 5.3.1 power-on reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 5.3.2 external reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 5.3.3 cop watchdog reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 5.3.4 illegal address reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 5.4 interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 5.4.1 software interrupt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 5.4.2 external interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 5.4.3 timer interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 5.4.3.1 real-time interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 5.4.3.2 timer overflow interrupt . . . . . . . . . . . . . . . . . . . . . . . . .69 5.4.4 interrupt processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
technical data mc68hc705kj1 rev. 2.0 8 table of contents motorola table of contents section 6. low-power modes 6.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 6.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74 6.3 exiting stop and wait modes . . . . . . . . . . . . . . . . . . . . . . . . . .74 6.4 effects of stop and wait modes . . . . . . . . . . . . . . . . . . . . . . . .75 6.4.1 clock generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 6.4.1.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 6.4.1.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 6.4.2 cpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 6.4.2.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 6.4.2.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 6.4.3 cop watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 6.4.3.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 6.4.3.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 6.4.4 timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.4.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.4.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.5 eprom/otprom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.5.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.5.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.5 data-retention mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 6.6 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 section 7. parallel i/o ports 7.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 7.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 7.3 port a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 7.3.1 port a data register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 7.3.2 data direction register a. . . . . . . . . . . . . . . . . . . . . . . . . . .83 7.3.3 pulldown register a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 7.3.4 port led drive capability. . . . . . . . . . . . . . . . . . . . . . . . . . .85 7.3.5 port a i/o pin interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . .86
table of contents mc68hc705kj1 rev. 2.0 technical data motorola table of contents 9 7.4 port b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 7.4.1 port b data register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 7.4.2 data direction register b. . . . . . . . . . . . . . . . . . . . . . . . . . .87 7.4.3 pulldown register b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 7.5 i/o port electrical characteristics . . . . . . . . . . . . . . . . . . . . . . .90 section 8. computer operating properly module (cop) 8.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 8.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 8.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 8.4 operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94 8.4.1 cop watchdog timeout . . . . . . . . . . . . . . . . . . . . . . . . . . .94 8.4.2 cop watchdog timeout period . . . . . . . . . . . . . . . . . . . . . .94 8.4.3 clearing the cop watchdog . . . . . . . . . . . . . . . . . . . . . . . .95 8.5 interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 8.6 cop register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 8.7 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 8.7.1 stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 8.7.2 wait mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 section 9. external interrupt module (irq) 9.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 9.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 9.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 9.4 operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 9.4.1 irq/v pp pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 9.4.2 optional external interrupts . . . . . . . . . . . . . . . . . . . . . . . .101 9.5 irq status and control register . . . . . . . . . . . . . . . . . . . . . .102 9.6 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
technical data mc68hc705kj1 rev. 2.0 10 table of contents motorola table of contents section 10. multifunction timer module 10.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 10.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 10.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 10.4 operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 10.5 interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 10.6 i/o registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 10.6.1 timer status and control register . . . . . . . . . . . . . . . . . . .108 10.6.2 timer counter register . . . . . . . . . . . . . . . . . . . . . . . . . . .110 10.7 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 10.7.1 stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 10.7.2 wait mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 section 11. electrical specifications 11.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113 11.2 maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 11.3 operating temperature range. . . . . . . . . . . . . . . . . . . . . . . .115 11.4 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 11.5 power considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 11.6 5.0-v dc electrical characteristics . . . . . . . . . . . . . . . . . . .117 11.7 3.3-v dc electrical characteristics . . . . . . . . . . . . . . . . . . . .118 11.8 driver characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119 11.9 typical supply currents . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 11.10 eprom programming characteristics . . . . . . . . . . . . . . . . . .122 11.11 control timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
table of contents mc68hc705kj1 rev. 2.0 technical data motorola table of contents 11 section 12. mechanical specifications 12.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127 12.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127 12.2.1 16-pin pdip ?case #648. . . . . . . . . . . . . . . . . . . . . . . . .128 12.2.2 16-pin soic ?case #751g . . . . . . . . . . . . . . . . . . . . . . .128 12.2.3 16-pin cerdip ?case #620a . . . . . . . . . . . . . . . . . . . . . .129 section 13. ordering information 13.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131 13.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131 13.3 mcu order numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131 appendix a. mc68hrc705kj1 a.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133 a.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133 a.3 rc oscillator connections . . . . . . . . . . . . . . . . . . . . . . . . . . .134 a.4 typical internal operating frequency for rc oscillator option . . . . . . . . . . . . . . . . . . . . . . . . . . . . .135 a.5 rc oscillator connections (no external resistor) . . . . . . . . .136 a.6 typical internal operating frequency versus temperature (no external resistor) . . . . . . . . . . . . . . . . . . . . . . . . . . . .137 a.7 package types and order numbers . . . . . . . . . . . . . . . . . . .138 appendix b. mc68hlc705kj1 b.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139 b.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139 b.3 dc electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . .139 b.4 package types and order numbers . . . . . . . . . . . . . . . . . . .140
technical data mc68hc705kj1 rev. 2.0 12 table of contents motorola table of contents
mc68hc705kj1 rev. 2.0 technical data motorola list of figures 13 technical data ?mc68hc705kj1 list of figures figure title page 1-1 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 2-1 pin assignments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 2-2 bypassing layout recommendation . . . . . . . . . . . . . . . . . .25 2-3 crystal connections with oscillator internal resistor mask option . . . . . . . . . . . . .26 2-4 crystal connections without oscillator internal resistor mask option . . . . . . . . . . . . .26 2-5 ceramic resonator connections with oscillator internal resistor mask option . . . . . . . . . . . . .27 2-6 ceramic resonator connections without oscillator internal resistor mask option . . . . . . . . . . . . .27 2-7 external clock connections . . . . . . . . . . . . . . . . . . . . . . . . .28 3-1 memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 3-2 i/o register summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 3-3 eprom programming register (eprog) . . . . . . . . . . . . . .36 3-4 mask option register (mor) . . . . . . . . . . . . . . . . . . . . . . . .38 4-1 programming model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 4-2 accumulator (a) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 4-3 index register (x) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 4-4 stack pointer (sp) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 4-5 program counter (pc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 4-6 condition code register (ccr) . . . . . . . . . . . . . . . . . . . . . .47
technical data mc68hc705kj1 rev. 2.0 14 list of figures motorola list of figures figure title page 5-1 reset sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 5-2 power-on reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 5-3 external reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 5-4 external interrupt logic . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 5-5 external interrupt timing . . . . . . . . . . . . . . . . . . . . . . . . . .68 5-6 interrupt stacking order . . . . . . . . . . . . . . . . . . . . . . . . . . . .70 5-7 interrupt flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72 6-1 stop mode recovery timing . . . . . . . . . . . . . . . . . . . . . . . .79 6-2 stop/halt/wait flowchart . . . . . . . . . . . . . . . . . . . . . . . .80 7-1 parallel i/o port register summary . . . . . . . . . . . . . . . . . . .82 7-2 port a data register (porta). . . . . . . . . . . . . . . . . . . . . . .83 7-3 data direction register a (ddra) . . . . . . . . . . . . . . . . . . . .83 7-4 port a i/o circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 7-5 pulldown register a (pdra) . . . . . . . . . . . . . . . . . . . . . . . .85 7-6 port b data register (portb). . . . . . . . . . . . . . . . . . . . . . .86 7-7 data direction register b (ddrb) . . . . . . . . . . . . . . . . . . . .87 7-8 port b i/o circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88 7-9 pulldown register b (pdrb) . . . . . . . . . . . . . . . . . . . . . . . .89 8-1 cop register (copr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 9-1 irq module block diagram . . . . . . . . . . . . . . . . . . . . . . . . .99 9-2 irq module i/o register summary . . . . . . . . . . . . . . . . . . .99 9-3 interrupt flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 9-4 irq status and control register (iscr) . . . . . . . . . . . . . .102 9-5 external interrupt timing . . . . . . . . . . . . . . . . . . . . . . . . . .104 10-1 multifunction timer block diagram. . . . . . . . . . . . . . . . . . .106 10-2 i/o register summary . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 10-3 timer status and control register (tscr) . . . . . . . . . . . .108 10-4 timer counter register (tcr) . . . . . . . . . . . . . . . . . . . . . .110
list of figures mc68hc705kj1 rev. 2.0 technical data motorola list of figures 15 figure title page 11-1 pa4?a7 typical high-side driver characteristics . . . . . .119 11-2 pa0?a3 and pb2?b3 typical high-side driver characteristics . . . . . . . . . . . . . . . . . . . . . . . . . .119 11-3 pa4?a7 typical low-side driver characteristics . . . . . .120 11-4 pa0?a3 and pb2?b3 typical low-side driver characteristics . . . . . . . . . . . . . . . . . . . . . . . . . .120 11-5 typical operating i dd (25 c) . . . . . . . . . . . . . . . . . . . . . . .121 11-6 typical wait mode i dd (25 c) . . . . . . . . . . . . . . . . . . . . . .122 11-7 external interrupt timing . . . . . . . . . . . . . . . . . . . . . . . . . .125 11-8 stop mode recovery timing . . . . . . . . . . . . . . . . . . . . . . .125 11-9 power-on reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . .126 11-10 external reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 a-1 rc oscillator connections . . . . . . . . . . . . . . . . . . . . . . . . .134 a-2 typical internal operating frequency for various v dd at 25 c ?rc oscillator option only . . . .135 a-3 rc oscillator connections (no external resistor) . . . . . . .136 a-4 typical internal operating frequency versus temperature (oscres bit = 1) . . . . . . . . . . . .137 b-1 crystal connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .140
technical data mc68hc705kj1 rev. 2.0 16 list of figures motorola list of figures
mc68hc705kj1 rev. 2.0 technical data motorola list of tables 17 technical data mc68hc705kj1 list of tables table title page 1-1 programmable options . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 3-1 eprom programming characteristics . . . . . . . . . . . . . . . . .40 4-1 register/memory instructions . . . . . . . . . . . . . . . . . . . . . . .51 4-2 read-modify-write instructions . . . . . . . . . . . . . . . . . . . . . .52 4-3 jump and branch instructions . . . . . . . . . . . . . . . . . . . . . . .54 4-4 bit manipulation instructions . . . . . . . . . . . . . . . . . . . . . . . .55 4-5 control instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 4-6 instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . .56 4-7 opcode map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62 5-1 external reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 5-2 external interrupt timing (v dd = 5.0 vdc) . . . . . . . . . . . . . .68 5-3 external interrupt timing (v dd = 3.3 vdc) . . . . . . . . . . . . . .68 5-4 reset/interrupt vector addresses . . . . . . . . . . . . . . . . . . . .71 7-1 port a pin operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 7-2 port b pin operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88 7-3 i/o port dc electrical characteristics (v dd = 5.0 v) . . . . . .90 7-4 i/o port dc electrical characteristics (v dd = 3.3 v) . . . . . .91 9-1 i/o register address summary . . . . . . . . . . . . . . . . . . . . . .99 9-2 external interrupt timing (v dd = 5.0 vdc) . . . . . . . . . . . . .104 9-3 external interrupt timing (v dd = 3.3 vdc) . . . . . . . . . . . . .104 10-1 i/o register address summary . . . . . . . . . . . . . . . . . . . . .107 10-2 real-time interrupt rate selection . . . . . . . . . . . . . . . . . .110
technical data mc68hc705kj1 rev. 2.0 18 list of tables motorola list of tables table title page 11-1 maximum ratings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 11-2 control timing (v dd = 5.0 vdc) . . . . . . . . . . . . . . . . . . . . .123 11-3 control timing (v dd = 3.3 vdc) . . . . . . . . . . . . . . . . . . . . .124 13-1 order numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131 a-1 mc68hrc705kj1 (rc oscillator option) order numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .138 b-1 dc electrical characteristics (v dd = 5 v) . . . . . . . . . . . . .139 b-2 dc electrical characteristics (v dd = 3.3 v) . . . . . . . . . . . .139 b-3 mc68hlc705kj1 (high speed) order numbers . . . . . . .140
mc68hc705kj1 rev. 2.0 technical data motorola introduction 19 technical data ?mc68hc705kj1 section 1. introduction 1.1 contents 1.2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 1.3 structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 1.4 programmable options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 1.2 features features on the mc68hc705kj1 include: robust noise immunity 4.0-mhz internal operating frequency at 5.0 v 1240 bytes of eprom/otprom (electrically programmable read-only memory/one-time programmable read-only memory), including eight bytes for user vectors 64 bytes of user ram peripheral modules 15-stage multifunction timer computer operating properly (cop) watchdog 10 bidirectional input/output (i/o) lines, including: 10-ma sink capability on all i/o pins software programmable pulldowns on all i/o pins keyboard scan with selectable interrupt on four i/o pins 5.5-ma source capability on six i/o pins selectable sensitivity on external interrupt (edge- and level-sensitive or edge-sensitive only)
technical data mc68hc705kj1 rev. 2.0 20 introduction motorola introduction on-chip oscillator with connections for: crystal ceramic resonator resistor-capacitor (rc) oscillator (mc68hrc705kj1) with or without external resistor external clock low-speed (32-khz) crystal (mc68hlc705kj1) memory-mapped i/o registers fully static operation with no minimum clock speed power-saving stop, halt, wait, and data-retention modes external interrupt mask bit and acknowledge bit illegal address reset internal steering diode and pullup resistor from reset pin to v dd selectable eprom security 1 selectable oscillator bias resistor 1. no security feature is absolutely secure. however, motorola? strategy is to make reading or copying the eprom/otprom difficult for unauthorized users.
introduction structure mc68hc705kj1 rev. 2.0 technical data motorola introduction 21 1.3 structure figure 1-1. block diagram 0000000011 watchdog and illegal address detect static ram (sram) ?64 bytes alu cpu control 68hc05 cpu accumulator index register stk ptr program counter condition code register 15-stage multifunction timer system divide internal oscillator osc1 osc2 cpu registers user eprom ?1240 bytes mask option register (mor) 10-ma sink capability on all i/o pins data direction register a data direction register b port a port b pb3 (1) pb2 (1) pa7 pa6 pa5 pa4 pa3 (1) (2) pa2 (1) (2) pa1 (1) (2) pa0 (1) (2) reset irq/v pp 111hinzc by 2 notes: 1. 5.5 ma source capability 2. external interrupt capability
technical data mc68hc705kj1 rev. 2.0 22 introduction motorola introduction 1.4 programmable options the options in table 1-1 are programmable in the mask option register. table 1-1. programmable options feature option cop watchdog timer enabled or disabled external interrupt triggering edge-sensitive only or edge- and level-sensitive port a irq pin interrupts enabled or disabled port pulldown resistors enabled or disabled stop instruction mode stop mode or halt mode crystal oscillator internal resistor enabled or disabled eprom security enabled or disabled short oscillator delay counter enabled or disabled
mc68hc705kj1 rev. 2.0 technical data motorola pin descriptions 23 technical data ?mc68hc705kj1 section 2. pin descriptions 2.1 contents 2.2 pin assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 2.3 pin functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 2.3.1 v dd and v ss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 2.3.2 osc1 and osc2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 2.3.2.1 crystal oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 2.3.2.2 ceramic resonator oscillator . . . . . . . . . . . . . . . . . . . . .26 2.3.2.3 rc oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.2.4 external clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.3 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.4 irq/v pp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.3.5 pa0?a7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.3.6 pb2 and pb3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
technical data mc68hc705kj1 rev. 2.0 24 pin descriptions motorola pin descriptions 2.2 pin assignments figure 2-1. pin assignments 2.3 pin functions the pin functions of the mcus are described in these subsections. 2.3.1 v dd and v ss v dd and v ss are the power supply and ground pins. the mcu operates from a single power supply. very fast signal transitions occur on the mcu pins, placing high, short-duration current demands on the power supply. to prevent noise problems, take special care, as figure 2-2 shows, by placing the bypass capacitors as close as possible to the mcu. c2 is an optional bulk current bypass capacitor for use in applications that require the port pins to source high current levels. reset 1 osc1 2 osc2 3 pb3 4 pb2 5 v dd 6 v ss 7 pa7 8 irq /v pp 16 pa0 15 pa1 14 pa2 13 pa3 12 pa4 11 pa5 10 pa6 9
pin descriptions pin functions mc68hc705kj1 rev. 2.0 technical data motorola pin descriptions 25 figure 2-2. bypassing layout recommendation 2.3.2 osc1 and osc2 the osc1 and osc2 pins are the connections for the on-chip oscillator. the oscillator can be driven by any of the following: 1. standard crystal (see figure 2-3 and figure 2-4 .) 2. ceramic resonator (see figure 2-5 and figure 2-6 .) 3. resistor/capacitor (rc) oscillator (refer to appendix a. mc68hrc705kj1 .) 4. external clock signal as shown in (see figure 2-7 .) 5. low speed (32 khz) crystal connections (refer to appendix b. mc68hlc705kj1 .) the frequency, f osc , of the oscillator or external clock source is divided by two to produce the internal operating frequency, f op . 2.3.2.1 crystal oscillator figure 2-3 and figure 2-4 show a typical crystal oscillator circuit for an at-cut, parallel resonant crystal. follow the crystal supplier? recommendations, as the crystal parameters determine the external component values required to provide reliable startup and maximum stability. the load capacitance values used in the oscillator circuit design should include all stray layout capacitances. to minimize output distortion, mount the crystal and capacitors as close as possible to the pins. an internal startup resistor of approximately 2m ? is provided between osc1 and osc2 for the crystal oscillator as a programmable mask option. note: use an at-cut crystal and not an at-strip crystal because the mcu can overdrive an at-strip crystal. c1 c2 mcu c1 0.1 f c2 v+ + v dd v ss v dd v ss
technical data mc68hc705kj1 rev. 2.0 26 pin descriptions motorola pin descriptions figure 2-3. crystal connections with oscillator internal resistor mask option figure 2-4. crystal connections without oscillator internal resistor mask option 2.3.2.2 ceramic resonator oscillator to reduce cost, use a ceramic resonator instead of the crystal. the circuits shown in figure 2-5 and figure 2-6 show ceramic resonator circuits. follow the resonator manufacturer? recommendations, as the resonator parameters determine the external component values required for maximum stability and reliable starting. the load capacitance values used in the oscillator circuit design should include all stray capacitances. mcu c1 c2 xtal c4 c3 xtal c3 27 pf c4 27 pf pa7 osc2 pa7 osc2 v ss v dd v ss mcu c1 c2 r xtal c4 c3 r 10 m ? xtal c3 27 pf c4 27 pf pa7 osc2 v dd v ss pa7 osc2 v ss
pin descriptions pin functions mc68hc705kj1 rev. 2.0 technical data motorola pin descriptions 27 mount the resonator and components as close as possible to the pins for startup stabilization and to minimize output distortion. an internal startup resistor of approximately 2 m ? is provided between osc1 and osc2 as a programmable mask option. figure 2-5. ceramic resonator connections with oscillator internal resistor mask option figure 2-6. ceramic resonator connections without oscillator internal resistor mask option mcu c1 c2 ceramic c4 c3 ceramic c3 27 pf c4 27 pf resonator resonator pa7 osc2 pa7 osc2 v dd v ss v ss mcu c1 c2 r ceramic c4 c3 r 10 m ? ceramic c3 27 pf c4 27 pf resonator resonator v ss v dd v ss pa7 osc2 pa7 osc2
technical data mc68hc705kj1 rev. 2.0 28 pin descriptions motorola pin descriptions 2.3.2.3 rc oscillator refer to appendix a. mc68hrc705kj1 . 2.3.2.4 external clock an external clock from another cmos-compatible device can be connected to the osc1 input, with the osc2 input not connected, as shown in figure 2-7 . this configuration is possible regardless of whether the crystal/ceramic resonator or the rc oscillator is enabled. figure 2-7. external clock connections 2.3.3 reset applying a logic 0 to the reset pin forces the mcu to a known startup state. an internal reset also pulls the reset pin low. an internal resistor to v dd pulls the reset pin high. a steering diode between the reset and v dd pins discharges any reset pin voltage when power is removed from the mcu. the reset pin contains an internal schmitt trigger to improve its noise immunity as an input. refer to section 5. resets and interrupts for more information. mcu external cmos clock pa7 osc2
pin descriptions pin functions mc68hc705kj1 rev. 2.0 technical data motorola pin descriptions 29 2.3.4 irq/v pp the external interrupt/programming voltage pin ( irq/v pp ) drives the asynchronous irq interrupt function of the cpu. additionally, it is used to program the user eprom and mask option register. (see section 3. memory and section 9. external interrupt module (irq) .) the level bit in the mask option register provides negative edge-sensitive triggering or both negative edge-sensitive and low level-sensitive triggering for the interrupt function. if level-sensitive triggering is selected, the irq/v pp input requires an external resistor to v dd for wired-or operation. if the irq/v pp pin is not used, it must be tied to the v dd supply. the irq/v pp pin contains an internal schmitt trigger as part of its input to improve noise immunity. the voltage on this pin should not exceed v dd except when the pin is being used for programming the eprom. note: the mask option register can enable the pa0 pa3 pins to function as external interrupt pins. 2.3.5 pa0?a7 these eight input/output (i/o) lines comprise port a, a general-purpose bidirectional i/o port. (see section 9. external interrupt module (irq) for information on pa0?a3 external interrupts.) 2.3.6 pb2 and pb3 these two i/o lines comprise port b, a general-purpose bidirectional i/o port.
technical data mc68hc705kj1 rev. 2.0 30 pin descriptions motorola pin descriptions
mc68hc705kj1 rev. 2.0 technical data motorola memory 31 technical data ?mc68hc705kj1 section 3. memory 3.1 contents 3.2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 3.3 memory map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 3.4 input/output register summary . . . . . . . . . . . . . . . . . . . . . . .33 3.5 ram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 3.6 eprom/otprom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 3.6.1 eprom/otprom programming . . . . . . . . . . . . . . . . . . . . .36 3.6.2 eprom programming register . . . . . . . . . . . . . . . . . . . . .36 3.6.3 eprom erasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 3.7 mask option register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 3.8 eprom programming characteristics . . . . . . . . . . . . . . . . . . .40 3.2 features memory features include: 1232 bytes of user eprom, plus eight bytes for user vectors 64 bytes of user ram
technical data mc68hc705kj1 rev. 2.0 32 memory motorola memory 3.3 memory map port a data register (porta) $0000 port b data register (portb) $0001 unimplemented $0002 $0003 data direction register a (ddra) $0004 data direction register b (ddrb) $0005 unimplemented $0006 $0007 timer status and control register (tscr) $0008 timer control register (tcr) $0009 $0000 i/o registers 32 bytes irq status and control register (iscr) $000a unimplemented $000b $001f $0020 unimplemented 160 bytes $000f pulldown register port a (pdra) $0010 $00bf pulldown register port b (pdrb) $0011 $00c0 ram 64 bytes unimplemented $0012 $00ff $0017 $0100 unimplemented 512 bytes eprom programming register (eprog) $0018 unimplemented $0019 $02ff $0300 eprom 1232 bytes $001e reserved $001f $07cf $07d0 unimplemented 30 bytes cop register (copr) (1) $07f0 mask option register (mor) $07f1 $07ed reserved $07f2 $07ee test rom 2 bytes $07ef $07f7 $07f0 registers and eprom 16 bytes timer interrupt vector high $07f8 timer interrupt vector low $07f9 $07ff external interrupt vector high $07fa external interrupt vector low $07fb software interrupt vector high $07fc software interrupt vector low $07fd reset vector high $07fe reset vector low $07ff (1) writing to bit 0 of $07f0 clears the cop watchdog. figure 3-1. memory map
memory input/output register summary mc68hc705kj1 rev. 2.0 technical data motorola memory 33 3.4 input/output register summary addr. register name bit 7 654321 bit 0 $0000 port a data register (porta) see page 83. read: pa7 pa6 pa5 pa4 pa3 pa2 pa1 pa0 write: reset: unaffected by reset $0001 port b data register (portb) see page 86. read: 0 0 refer to section 7. parallel i/o ports pb3 pb2 refer to section 7. parallel i/o ports write: reset: unaffected by reset $0002 unimplemented $0003 unimplemented $0004 data direction register a (ddra) see page 83. read: ddra7 ddra6 ddra5 ddra4 ddra3 ddra2 ddra1 ddra0 write: reset: 00000000 $0005 data direction register b (ddrb) see page 87. read: 0 0 refer to section 7. parallel i/o ports ddrb3 ddrb2 refer to section 7. parallel i/o ports write: reset: 00000000 $0006 unimplemented $0007 unimplemented $0008 timer status and control register (tscr) see page 108. read: tof rtif toie rtie 00 rt1 rt0 write: tofr rtifr reset: 00000011 $0009 timer counter register (tcr) see page 110. read: tcr7 tcr6 tcr5 tcr4 tcr3 tcr2 tcr1 tcr0 write: reset: 00000000 $000a irq status and control register (iscr) see page 102. read: irqe 0 0 0 irqf 0 0 0 write: r irqr reset: 10000000 = unimplemented r = reserved u = unaffected figure 3-2. i/o register summary (sheet 1 of 2)
technical data mc68hc705kj1 rev. 2.0 34 memory motorola memory $000b unimplemented $000f unimplemented $0010 pulldown register port a (pdra) see page 85. read: write: pdia7 pdia6 pdia5 pdia4 pdia3 pdia2 pdia1 pdia0 reset: 00000000 $0011 pulldown register port b (pdrb) see page 89. read: write: refer to section 7. parallel i/o ports pdib3 pdib2 refer to section 7. parallel i/o ports reset: 00000000 $0012 unimplemented $0017 unimplemented $0018 eprom programming register (eprog) see page 36. read: 00000 elat mpgm epgm write: rrrr reset: 00000000 $0019 unimplemented $001e unimplemented $001f reserved rrrrrrrr $07f0 cop register (copr) see page 95. read: write: copc reset: uuuuuuu0 $07f1 mask option register (mor) see page 38. read: soscd epmsec oscres swait pdi pirq level copen write: reset: unaffected by reset addr. register name bit 7 654321 bit 0 = unimplemented r = reserved u = unaffected figure 3-2. i/o register summary (sheet 2 of 2)
memory ram mc68hc705kj1 rev. 2.0 technical data motorola memory 35 3.5 ram the 64 addresses from $00c0 to $00ff serve as both the user ram and the stack ram. before processing an interrupt, the cpu uses five bytes of the stack to save the contents of the cpu registers. during a subroutine call, the cpu uses two bytes of the stack to store the return address. the stack pointer decrements when the cpu stores a byte on the stack and increments when the cpu retrieves a byte from the stack. note: be careful when using nested subroutines or multiple interrupt levels. the cpu may overwrite data in the ram during a subroutine or during the interrupt stacking operation. 3.6 eprom/otprom an mcu with a quartz window has 1240 bytes of erasable, programmable rom (eprom). the quartz window allows eprom erasure with ultraviolet light. note: keep the quartz window covered with an opaque material except when erasing the mcu. ambient light can affect mcu operation. in an mcu without the quartz window, the eprom cannot be erased and serves as 1240 bytes of one-time programmable rom (otprom). the following addresses are user eprom/otprom locations: $0300?07cf $07f8?07ff, used for user-defined interrupt and reset vectors the cop register (copr) is an eprom/otprom location at address $07f0. the mask option register (mor) is an eprom/otprom location at address $07f1.
technical data mc68hc705kj1 rev. 2.0 36 memory motorola memory 3.6.1 eprom/otprom programming the two ways to program the eprom/otprom are: ? manipulating the control bits in the eprom programming register to program the eprom/otprom on a byte-by-byte basis ? programming the eprom/otprom with the m68hc705j in-circuit simulator (m68hc705jics) available from motorola 3.6.2 eprom programming register the eprom programming register (eprog) contains the control bits for programming the eprom/otprom. elat eprom bus latch bit this read/write bit latches the address and data buses for eprom/otprom programming. clearing the elat bit automatically clears the epgm bit. eprom/otprom data cannot be read while the elat bit is set. reset clears the elat bit. 1 = address and data buses configured for eprom/otprom programming the eprom 0 = address and data buses configured for normal operation mpgm mor programming bit this read/write bit applies programming power from the irq/v pp pin to the mask option register. reset clears mpgm. 1 = programming voltage applied to mor 0 = programming voltage not applied to mor address: $0018 bit 7 654321 bit 0 read: 00000 elat mpgm epgm write: rrrr reset: 00000000 = unimplemented r = reserved figure 3-3. eprom programming register (eprog)
memory eprom/otprom mc68hc705kj1 rev. 2.0 technical data motorola memory 37 epgm ?eprom programming bit this read/write bit applies the voltage from the irq/v pp pin to the eprom. to write the epgm bit, the elat bit must be set already. reset clears epgm. 1 = programming voltage ( irq/v pp pin) applied to eprom 0 = programming voltage ( irq/v pp pin) not applied to eprom note: writing logic 1s to both the elat and epgm bits with a single instruction sets elat and clears epgm. elat must be set first by a separate instruction. bits [7:3] ?reserved take the following steps to program a byte of eprom/otprom: 1. apply the programming voltage, v pp , to the irq/v pp pin. 2. set the elat bit. 3. write to any eprom/otprom address. 4. set the epgm bit and wait for a time, t epgm . 5. clear the elat bit. 3.6.3 eprom erasing the erased state of an eprom bit is logic 0. erase the eprom by exposing it to 15 ws/cm 2 of ultraviolet light with a wavelength of 2537 angstroms. position the ultraviolet light source one inch from the eprom. do not use a shortwave filter.
technical data mc68hc705kj1 rev. 2.0 38 memory motorola memory 3.7 mask option register the mask option register (mor) is an eprom/otprom byte that controls the following options: cop watchdog (enable or disable) external interrupt pin triggering (edge-sensitive only or edge- and level-sensitive) port a external interrupts (enable or disable) port pulldown resistors (enable or disable) stop instruction (stop mode or halt mode) crystal oscillator internal resistor (enable or disable) eprom security (enable or disable) short oscillator delay (enable or disable) take the following steps to program the mask option register (mor): 1. apply the programming voltage, v pp , to the irq/v pp pin. 2. write to the mor. 3. set the mpgm bit and wait for a time, t mpgm . 4. clear the mpgm bit. 5. reset the mcu. address: $07f1 bit 7 654321 bit 0 read: soscd epmsec oscres swait swpdi pirq level copen write: reset: unaffected by reset figure 3-4. mask option register (mor)
memory mask option register mc68hc705kj1 rev. 2.0 technical data motorola memory 39 soscd ?short oscillator delay bit the soscd bit controls the oscillator stabilization counter. the normal stabilization delay following reset or exit from stop mode is 4064 t cyc . setting soscd enables a 128 t cyc stabilization delay. 1 = short oscillator delay enabled 0 = short oscillator delay disabled epmsec ?eprom security bit the epmsec bit controls access to the eprom/otprom. 1 = external access to eprom/otprom denied 0 = external access to eprom/otprom not denied oscres ?oscillator internal resistor bit the oscres bit enables a 2-m ? internal resistor in the oscillator circuit. 1 = oscillator internal resistor enabled 0 = oscillator internal resistor disabled note: program the oscres bit to logic 0 in devices using low-speed crystal or rc oscillators with external resistor. swait ?stop-to-wait conversion bit the swait bit enables halt mode. when the swait bit is set, the cpu interprets the stop instruction as a wait instruction, and the mcu enters halt mode. halt mode is the same as wait mode, except that an oscillator stabilization delay of 1 to 4064 t cyc occurs after exiting halt mode. 1 = halt mode enabled 0 = halt mode not enabled swpdi ?software pulldown inhibit bit the swpdi bit inhibits software control of the i/o port pulldown devices. the swpdi bit overrides the pulldown inhibit bits in the port pulldown inhibit registers. 1 = software pulldown control inhibited 0 = software pulldown control not inhibited
technical data mc68hc705kj1 rev. 2.0 40 memory motorola memory pirq ?port a external interrupt bit the pirq bit enables the pa0?a3 pins to function as external interrupt pins. 1 = pa0?a3 enabled as external interrupt pins 0 = pa0?a3 not enabled as external interrupt pins level ?xternal interrupt sensitivity bit the level bit controls external interrupt triggering sensitivity. 1 = external interrupts triggered by active edges and active levels 0 = external interrupts triggered only by active edges copen ?cop enable bit the copen bit enables the cop watchdog. 1 = cop watchdog enabled 0 = cop watchdog disabled 3.8 eprom programming characteristics table 3-1. eprom programming characteristics (1) 1. v dd = 5.0 vdc 10%, v ss = 0 vdc, t a = ?0 c to +85 c characteristic symbol min typ max unit programming voltage irq/v pp v pp 16.0 16.5 17.0 v programming current irq/v pp i pp 3.0 10.0 ma programming time per array byte mor t epgm t mpgm 4 4 ms
mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 41 technical data ?mc68hc705kj1 section 4. central processor unit (cpu) 4.1 contents 4.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 4.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 4.4 cpu control unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 4.5 arithmetic/logic unit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 4.6 cpu registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 4.6.1 accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 4.6.2 index register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 4.6.3 stack pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 4.6.4 program counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 4.6.5 condition code register . . . . . . . . . . . . . . . . . . . . . . . . . . .47 4.7 instruction set. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 4.7.1 addressing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 4.7.1.1 inherent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.2 immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.3 direct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.4 extended . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.5 indexed, no offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 4.7.1.6 indexed, 8-bit offset . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 4.7.1.7 indexed, 16-bit offset . . . . . . . . . . . . . . . . . . . . . . . . . . .50 4.7.1.8 relative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 4.7.2 instruction types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 4.7.2.1 register/memory instructions . . . . . . . . . . . . . . . . . . . . .51 4.7.2.2 read-modify-write instructions . . . . . . . . . . . . . . . . . . . .52 4.7.2.3 jump/branch instructions. . . . . . . . . . . . . . . . . . . . . . . . .53 4.7.2.4 bit manipulation instructions . . . . . . . . . . . . . . . . . . . . . .55 4.7.2.5 control instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 4.7.3 instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . .56
technical data mc68hc705kj1 rev. 2.0 42 central processor unit (cpu) motorola central processor unit (cpu) 4.2 introduction the central processor unit (cpu) consists of a cpu control unit, an arithmetic/logic unit (alu), and five cpu registers. the cpu control unit fetches and decodes instructions. the alu executes the instructions. the cpu registers contain data, addresses, and status bits that reflect the results of cpu operations. 4.3 features features of the cpu include: 4.0-mhz bus frequency on standard part 8-bit accumulator 8-bit index register 11-bit program counter 6-bit stack pointer condition code register with five status flags 62 instructions 8 addressing modes power-saving stop, wait, halt, and data-retention modes
central processor unit (cpu) cpu control unit mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 43 figure 4-1. programming model 4.4 cpu control unit the cpu control unit fetches and decodes instructions during program operation. the control unit selects the memory locations to read and write and coordinates the timing of all cpu operations. 4.5 arithmetic/logic unit the arithmetic/logic unit (alu) performs the arithmetic, logic, and manipulation operations decoded from the instruction set by the cpu control unit. the alu produces the results called for by the program and sets or clears status and control bits in the condition code register (ccr). accumulator (a) index register (x) condition code register (ccr) program counter (pc) stack pointer (sp) half-carry flag interrupt mask negative flag zero flag carry/borrow flag 0 4 75 6 321 0 arithmetic/logic unit cpu control unit 0 4 75 6 321 0 4 75 6 321 8 12 15 13 14 11 10 9 000000011 0 00 0 4 75 6 321 8 12 15 13 14 11 10 9 111hinzc 0 4 75 6 321 0 0
technical data mc68hc705kj1 rev. 2.0 44 central processor unit (cpu) motorola central processor unit (cpu) 4.6 cpu registers the m68hc05 cpu contains five registers that control and monitor mcu operation: accumulator index register stack pointer program counter condition code register cpu registers are not memory mapped. 4.6.1 accumulator the accumulator is a general-purpose 8-bit register. the cpu uses the accumulator to hold operands and results of alu operations. 4.6.2 index register in the indexed addressing modes, the cpu uses the byte in the index register to determine the conditional address of the operand. the index register also can serve as a temporary storage location or a counter. bit 7 654321 bit 0 read: write: reset: unaffected by reset figure 4-2. accumulator (a) bit 7 654321 bit 0 read: write: reset: unaffected by reset figure 4-3. index register (x)
central processor unit (cpu) cpu registers mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 45 4.6.3 stack pointer the stack pointer is a 16-bit register that contains the address of the next location on the stack. during a reset or after the reset stack pointer instruction (rsp), the stack pointer is preset to $00ff. the address in the stack pointer decrements after a byte is stacked and increments before a byte is unstacked. the 10 most significant bits of the stack pointer are permanently fixed at 0000000011, so the stack pointer produces addresses from $00c0 to $00ff. if subroutines and interrupts use more than 64 stack locations, the stack pointer wraps around to address $00ff and begins writing over the previously stored data. a subroutine uses two stack locations; an interrupt uses five locations. bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 bit 0 read: 0 0 0 0 0 0 0 0 1 1 write: reset: 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 = unimplemented figure 4-4. stack pointer (sp)
technical data mc68hc705kj1 rev. 2.0 46 central processor unit (cpu) motorola central processor unit (cpu) 4.6.4 program counter the program counter is a 16-bit register that contains the address of the next instruction or operand to be fetched. the five most significant bits of the program counter are ignored and appear as 00000. normally, the address in the program counter automatically increments to the next sequential memory location every time an instruction or operand is fetched. jump, branch, and interrupt operations load the program counter with an address other than that of the next sequential location. bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 bit 0 reset: 0 0 0 0 0 loaded with vector from $07fe and $07ff figure 4-5. program counter (pc)
central processor unit (cpu) cpu registers mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 47 4.6.5 condition code register the condition code register is an 8-bit register whose three most significant bits are permanently fixed at 111. the condition code register contains the interrupt mask and four flags that indicate the results of the instruction just executed. h ?half-carry flag the cpu sets the half-carry flag when a carry occurs between bits 3 and 4 of the accumulator during an add or adc operation. the half-carry flag is required for binary-coded decimal (bcd) arithmetic operations. i ?interrupt mask setting the interrupt mask disables interrupts. if an interrupt request occurs while the interrupt mask is logic 0, the cpu saves the cpu registers on the stack, sets the interrupt mask, and then fetches the interrupt vector. if an interrupt request occurs while the interrupt mask is logic 1, the interrupt request is latched. normally, the cpu processes the latched interrupt request as soon as the interrupt mask is cleared again. a return from interrupt instruction (rti) unstacks the cpu registers, restoring the interrupt mask to its cleared state. after any reset, the interrupt mask is set and can be cleared only by a software instruction. n ?negative flag the cpu sets the negative flag when an alu operation produces a negative result. bit 7 654321 bit 0 read: 1 1 1 hinzc write: reset: 1 1 1 u 1 u u u = unimplemented u = unaffected figure 4-6. condition code register (ccr)
technical data mc68hc705kj1 rev. 2.0 48 central processor unit (cpu) motorola central processor unit (cpu) z ?zero flag the cpu sets the zero flag when an alu operation produces a result of $00. c ?carry/borrow flag the cpu sets the carry/borrow flag when an addition operation produces a carry out of bit 7 of the accumulator or when a subtraction operation requires a borrow. some logical operations and data manipulation instructions also clear or set the carry/borrow flag. 4.7 instruction set the mcu instruction set has 62 instructions and uses eight addressing modes. 4.7.1 addressing modes the cpu uses eight addressing modes for flexibility in accessing data. the addressing modes provide eight different ways for the cpu to find the data required to execute an instruction. the eight addressing modes are: inherent immediate direct extended indexed, no offset indexed, 8-bit offset indexed, 16-bit offset relative
central processor unit (cpu) instruction set mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 49 4.7.1.1 inherent inherent instructions are those that have no operand, such as return-from-interrupt (rti) and stop (stop). some of the inherent instructions act on data in the cpu registers, such as set carry flag (sec) and increment accumulator (inca). inherent instructions require no operand address and are one byte long. 4.7.1.2 immediate immediate instructions are those that contain a value to be used in an operation with the value in the accumulator or index register. immediate instructions require no operand address and are two bytes long. the opcode is the first byte, and the immediate data value is the second byte. 4.7.1.3 direct direct instructions can access any of the first 256 memory locations with two bytes. the first byte is the opcode, and the second is the low byte of the operand address. in direct addressing, the cpu automatically uses $00 as the high byte of the operand address. 4.7.1.4 extended extended instructions use three bytes and can access any address in memory. the first byte is the opcode; the second and third bytes are the high and low bytes of the operand address. when using the motorola assembler, the programmer does not need to specify whether an instruction is direct or extended. the assembler automatically selects the shortest form of the instruction. 4.7.1.5 indexed, no offset indexed instructions with no offset are 1-byte instructions that can access data with variable addresses within the first 256 memory locations. the index register contains the low byte of the effective address of the operand. the cpu automatically uses $00 as the high byte, so these instructions can address locations $0000?00ff. indexed, no offset instructions are often used to move a pointer through a table or to hold the address of a frequently used ram or input/output (i/o) location.
technical data mc68hc705kj1 rev. 2.0 50 central processor unit (cpu) motorola central processor unit (cpu) 4.7.1.6 indexed, 8-bit offset indexed, 8-bit offset instructions are 2-byte instructions that can access data with variable addresses within the first 511 memory locations. the cpu adds the unsigned byte in the index register to the unsigned byte following the opcode. the sum is the effective address of the operand. these instructions can access locations $0000?01fe. indexed 8-bit offset instructions are useful for selecting the kth element in an n-element table. the table can begin anywhere within the first 256 memory locations and could extend as far as location 510 ($01fe). the k value is typically in the index register, and the address of the beginning of the table is in the byte following the opcode. 4.7.1.7 indexed, 16-bit offset indexed, 16-bit offset instructions are 3-byte instructions that can access data with variable addresses at any location in memory. the cpu adds the unsigned byte in the index register to the two unsigned bytes following the opcode. the sum is the effective address of the operand. the first byte after the opcode is the high byte of the 16-bit offset; the second byte is the low byte of the offset. indexed, 16-bit offset instructions are useful for selecting the kth element in an n-element table anywhere in memory. as with direct and extended addressing, the motorola assembler determines the shortest form of indexed addressing. 4.7.1.8 relative relative addressing is only for branch instructions. if the branch condition is true, the cpu finds the effective branch destination by adding the signed byte following the opcode to the contents of the program counter. if the branch condition is not true, the cpu goes to the next instruction. the offset is a signed, two? complement byte that gives a branching range of ?28 to +127 bytes from the address of the next location after the branch instruction. when using the motorola assembler, the programmer does not need to calculate the offset because the assembler determines the proper offset and verifies that it is within the span of the branch.
central processor unit (cpu) instruction set mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 51 4.7.2 instruction types the mcu instructions fall into the following five categories: register/memory instructions read-modify-write instructions jump/branch instructions bit manipulation instructions control instructions 4.7.2.1 register/memory instructions these instructions operate on cpu registers and memory locations. most of them use two operands. one operand is in either the accumulator or the index register. the cpu finds the other operand in memory. table 4-1. register/memory instructions instruction mnemonic add memory byte and carry bit to accumulator adc add memory byte to accumulator add and memory byte with accumulator and bit test accumulator bit compare accumulator cmp compare index register with memory byte cpx exclusive or accumulator with memory byte eor load accumulator with memory byte lda load index register with memory byte ldx multiply mul or accumulator with memory byte ora subtract memory byte and carry bit from accumulator sbc store accumulator in memory sta store index register in memory stx subtract memory byte from accumulator sub
technical data mc68hc705kj1 rev. 2.0 52 central processor unit (cpu) motorola central processor unit (cpu) 4.7.2.2 read-modify-write instructions these instructions read a memory location or a register, modify its contents, and write the modified value back to the memory location or to the register. note: do not use read-modify-write instructions on registers with write-only bits. table 4-2. read-modify-write instructions instruction mnemonic arithmetic shift left (same as lsl) asl arithmetic shift right asr bit clear bclr (1) 1. unlike other read-modify-write instructions, bclr and bset use only direct addressing. bit set bset (1) clear register clr complement (ones complement) com decrement dec increment inc logical shift left (same as asl) lsl logical shift right lsr negate (twos complement) neg rotate left through carry bit rol rotate right through carry bit ror test for negative or zero tst (2) 2. tst is an exception to the read-modify-write sequence because it does not write a replacement value.
central processor unit (cpu) instruction set mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 53 4.7.2.3 jump/branch instructions jump instructions allow the cpu to interrupt the normal sequence of the program counter. the unconditional jump instruction (jmp) and the jump-to-subroutine instruction (jsr) have no register operand. branch instructions allow the cpu to interrupt the normal sequence of the program counter when a test condition is met. if the test condition is not met, the branch is not performed. the brclr and brset instructions cause a branch based on the state of any readable bit in the first 256 memory locations. these 3-byte instructions use a combination of direct addressing and relative addressing. the direct address of the byte to be tested is in the byte following the opcode. the third byte is the signed offset byte. the cpu finds the effective branch destination by adding the third byte to the program counter if the specified bit tests true. the bit to be tested and its condition (set or clear) is part of the opcode. the span of branching is from ?28 to +127 from the address of the next location after the branch instruction. the cpu also transfers the tested bit to the carry/borrow bit of the condition code register. note: do not use brclr or brset instructions on registers with write-only bits.
technical data mc68hc705kj1 rev. 2.0 54 central processor unit (cpu) motorola central processor unit (cpu) table 4-3. jump and branch instructions instruction mnemonic branch if carry bit clear bcc branch if carry bit set bcs branch if equal beq branch if half-carry bit clear bhcc branch if half-carry bit set bhcs branch if higher bhi branch if higher or same bhs branch if irq pin high bih branch if irq pin low bil branch if lower blo branch if lower or same bls branch if interrupt mask clear bmc branch if minus bmi branch if interrupt mask set bms branch if not equal bne branch if plus bpl branch always bra branch if bit clear brclr branch never brn branch if bit set brset branch to subroutine bsr unconditional jump jmp jump to subroutine jsr
central processor unit (cpu) instruction set mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 55 4.7.2.4 bit manipulation instructions the cpu can set or clear any writable bit in the first 256 bytes of memory, which includes i/o registers and on-chip ram locations. the cpu can also test and branch based on the state of any bit in any of the first 256 memory locations. note: do not use bit manipulation instructions on registers with write-only bits. 4.7.2.5 control instructions these instructions act on cpu registers and control cpu operation during program execution. table 4-4. bit manipulation instructions instruction mnemonic bit clear bclr branch if bit clear brclr branch if bit set brset bit set bset table 4-5. control instructions instruction mnemonic clear carry bit clc clear interrupt mask cli no operation nop reset stack pointer rsp return from interrupt rti return from subroutine rts set carry bit sec set interrupt mask sei stop oscillator and enable irq pin stop software interrupt swi transfer accumulator to index register tax transfer index register to accumulator txa stop cpu clock and enable interrupts wait
technical data mc68hc705kj1 rev. 2.0 56 central processor unit (cpu) motorola central processor unit (cpu) 4.7.3 instruction set summary table 4-6. instruction set summary (sheet 1 of 6) source form operation description effect on ccr address mode opcode operand cycles hinzc adc # opr adc opr adc opr adc opr ,x adc opr ,x adc ,x add with carry a (a) + (m) + (c) ? ??? imm dir ext ix2 ix1 ix a9 b9 c9 d9 e9 f9 ii dd hh ll ee ff ff 2 3 4 5 4 3 add # opr add opr add opr add opr ,x add opr ,x add ,x add without carry a (a) + (m) ? ??? imm dir ext ix2 ix1 ix ab bb cb db eb fb ii dd hh ll ee ff ff 2 3 4 5 4 3 and # opr and opr and opr and opr ,x and opr ,x and ,x logical and a (a) (m) ?? imm dir ext ix2 ix1 ix a4 b4 c4 d4 e4 f4 ii dd hh ll ee ff ff 2 3 4 5 4 3 asl opr asla aslx asl opr ,x asl ,x arithmetic shift left (same as lsl) ??? dir inh inh ix1 ix 38 48 58 68 78 dd ff 5 3 3 6 5 asr opr asra asrx asr opr ,x asr ,x arithmetic shift right ??? dir inh inh ix1 ix 37 47 57 67 77 dd ff 5 3 3 6 5 bcc rel branch if carry bit clear pc (pc) + 2 + rel ? c = 0 rel 24 rr 3 bclr n opr clear bit n mn 0 dir (b0) dir (b1) dir (b2) dir (b3) dir (b4) dir (b5) dir (b6) dir (b7) 11 13 15 17 19 1b 1d 1f dd dd dd dd dd dd dd dd 5 5 5 5 5 5 5 5 bcs rel branch if carry bit set (same as blo) pc (pc) + 2 + rel ? c = 1 rel 25 rr 3 beq rel branch if equal pc (pc) + 2 + rel ? z = 1 rel 27 rr 3 bhcc rel branch if half-carry bit clear pc (pc) + 2 + rel ? h = 0 rel 28 rr 3 bhcs rel branch if half-carry bit set pc (pc) + 2 + rel ? h = 1 rel 29 rr 3 c b0 b7 0 b0 b7 c
central processor unit (cpu) instruction set mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 57 bhi rel branch if higher pc (pc) + 2 + rel ? c z = 0 rel 22 rr 3 bhs rel branch if higher or same pc (pc) + 2 + rel ? c = 0 rel 24 rr 3 bih rel branch if irq pin high pc (pc) + 2 + rel ? irq = 1 rel 2f rr 3 bil rel branch if irq pin low pc (pc) + 2 + rel ? irq = 0 rel 2e rr 3 bit # opr bit opr bit opr bit opr ,x bit opr ,x bit ,x bit test accumulator with memory byte (a) (m) ?? imm dir ext ix2 ix1 ix a5 b5 c5 d5 e5 f5 ii dd hh ll ee ff ff 2 3 4 5 4 3 blo rel branch if lower (same as bcs) pc (pc) + 2 + rel ? c = 1 rel 25 rr 3 bls rel branch if lower or same pc (pc) + 2 + rel ? c z = 1 rel 23 rr 3 bmc rel branch if interrupt mask clear pc (pc) + 2 + rel ? i = 0 rel 2c rr 3 bmi rel branch if minus pc (pc) + 2 + rel ? n = 1 rel 2b rr 3 bms rel branch if interrupt mask set pc (pc) + 2 + rel ? i = 1 rel 2d rr 3 bne rel branch if not equal pc (pc) + 2 + rel ? z = 0 rel 26 rr 3 bpl rel branch if plus pc (pc) + 2 + rel ? n = 0 rel 2a rr 3 bra rel branch always pc (pc) + 2 + rel ? 1 = 1 rel 20 rr 3 brclr n opr rel branch if bit n clear pc (pc) + 2 + rel ? mn = 0 ? dir (b0) dir (b1) dir (b2) dir (b3) dir (b4) dir (b5) dir (b6) dir (b7) 01 03 05 07 09 0b 0d 0f dd rr dd rr dd rr dd rr dd rr dd rr dd rr dd rr 5 5 5 5 5 5 5 5 brn rel branch never pc (pc) + 2 + rel ? 1 = 0 rel 21 rr 3 brset n opr rel branch if bit n set pc (pc) + 2 + rel ? mn = 1 ? dir (b0) dir (b1) dir (b2) dir (b3) dir (b4) dir (b5) dir (b6) dir (b7) 00 02 04 06 08 0a 0c 0e dd rr dd rr dd rr dd rr dd rr dd rr dd rr dd rr 5 5 5 5 5 5 5 5 bset n opr set bit n mn 1 dir (b0) dir (b1) dir (b2) dir (b3) dir (b4) dir (b5) dir (b6) dir (b7) 10 12 14 16 18 1a 1c 1e dd dd dd dd dd dd dd dd 5 5 5 5 5 5 5 5 table 4-6. instruction set summary (sheet 2 of 6) source form operation description effect on ccr address mode opcode operand cycles hinzc
technical data mc68hc705kj1 rev. 2.0 58 central processor unit (cpu) motorola central processor unit (cpu) bsr rel branch to subroutine pc (pc) + 2; push (pcl) sp (sp) ?1; push (pch) sp (sp) ?1 pc (pc) + rel rel ad rr 6 clc clear carry bit c 0 0 inh 98 2 cli clear interrupt mask i 0 0 inh 9a 2 clr opr clra clrx clr opr ,x clr ,x clear byte m $00 a $00 x $00 m $00 m $00 0 1 dir inh inh ix1 ix 3f 4f 5f 6f 7f dd ff 5 3 3 6 5 cmp # opr cmp opr cmp opr cmp opr ,x cmp opr ,x cmp ,x compare accumulator with memory byte (a) ?(m) ?? imm dir ext ix2 ix1 ix a1 b1 c1 d1 e1 f1 ii dd hh ll ee ff ff 2 3 4 5 4 3 com opr coma comx com opr ,x com ,x complement byte (ones complement) m ( m ) = $ff ?(m) a ( a ) = $ff ?(a) x ( x ) = $ff ?(x) m ( m ) = $ff ?(m) m ( m ) = $ff ?(m) ?? 1 dir inh inh ix1 ix 33 43 53 63 73 dd ff 5 3 3 6 5 cpx # opr cpx opr cpx opr cpx opr ,x cpx opr ,x cpx ,x compare index register with memory byte (x) ?(m) ??? imm dir ext ix2 ix1 ix a3 b3 c3 d3 e3 f3 ii dd hh ll ee ff ff 2 3 4 5 4 3 dec opr deca decx dec opr ,x dec ,x decrement byte m (m) ?1 a (a) ?1 x (x) ?1 m (m) ?1 m (m) ?1 ?? dir inh inh ix1 ix 3a 4a 5a 6a 7a dd ff 5 3 3 6 5 eor # opr eor opr eor opr eor opr ,x eor opr ,x eor ,x exclusive or accumulator with memory byte a (a) (m) ? ? imm dir ext ix2 ix1 ix a8 b8 c8 d8 e8 f8 ii dd hh ll ee ff ff 2 3 4 5 4 3 inc opr inca incx inc opr ,x inc ,x increment byte m (m) + 1 a (a) + 1 x (x) + 1 m (m) + 1 m (m) + 1 ?? dir inh inh ix1 ix 3c 4c 5c 6c 7c dd ff 5 3 3 6 5 table 4-6. instruction set summary (sheet 3 of 6) source form operation description effect on ccr address mode opcode operand cycles hinzc
central processor unit (cpu) instruction set mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 59 jmp opr jmp opr jmp opr ,x jmp opr ,x jmp ,x unconditional jump pc jump address dir ext ix2 ix1 ix bc cc dc ec fc dd hh ll ee ff ff 2 3 4 3 2 jsr opr jsr opr jsr opr ,x jsr opr ,x jsr ,x jump to subroutine pc (pc) + n (n = 1, 2, or 3) push (pcl); sp (sp) ?1 push (pch); sp (sp) ?1 pc effective address dir ext ix2 ix1 ix bd cd dd ed fd dd hh ll ee ff ff 5 6 7 6 5 lda # opr lda opr lda opr lda opr ,x lda opr ,x lda ,x load accumulator with memory byte a (m) ? ? imm dir ext ix2 ix1 ix a6 b6 c6 d6 e6 f6 ii dd hh ll ee ff ff 2 3 4 5 4 3 ldx # opr ldx opr ldx opr ldx opr ,x ldx opr ,x ldx ,x load index register with memory byte x (m) ?? imm dir ext ix2 ix1 ix ae be ce de ee fe ii dd hh ll ee ff ff 2 3 4 5 4 3 lsl opr lsla lslx lsl opr ,x lsl ,x logical shift left (same as asl) ? ?? dir inh inh ix1 ix 38 48 58 68 78 dd ff 5 3 3 6 5 lsr opr lsra lsrx lsr opr ,x lsr ,x logical shift right 0 ? dir inh inh ix1 ix 34 44 54 64 74 dd ff 5 3 3 6 5 mul unsigned multiply x : a (x) (a) 0 0 inh 42 11 neg opr nega negx neg opr ,x neg ,x negate byte (twos complement) m ?m) = $00 ?(m) a ?a) = $00 ?(a) x ?x) = $00 ?(x) m ?m) = $00 ?(m) m ?m) = $00 ?(m) ? ?? dir inh inh ix1 ix 30 40 50 60 70 dd ff 5 3 3 6 5 nop no operation inh 9d 2 ora # opr ora opr ora opr ora opr ,x ora opr ,x ora ,x logical or accumulator with memory a (a) (m) ? ? imm dir ext ix2 ix1 ix aa ba ca da ea fa ii dd hh ll ee ff ff 2 3 4 5 4 3 table 4-6. instruction set summary (sheet 4 of 6) source form operation description effect on ccr address mode opcode operand cycles hinzc c b0 b7 0 b0 b7 c 0
technical data mc68hc705kj1 rev. 2.0 60 central processor unit (cpu) motorola central processor unit (cpu) rol opr rola rolx rol opr ,x rol ,x rotate byte left through carry bit ? ?? dir inh inh ix1 ix 39 49 59 69 79 dd ff 5 3 3 6 5 ror opr rora rorx ror opr ,x ror ,x rotate byte right through carry bit ? ?? dir inh inh ix1 ix 36 46 56 66 76 dd ff 5 3 3 6 5 rsp reset stack pointer sp $00ff inh 9c 2 rti return from interrupt sp (sp) + 1; pull (ccr) sp (sp) + 1; pull (a) sp (sp) + 1; pull (x) sp (sp) + 1; pull (pch) sp (sp) + 1; pull (pcl) ? ???? inh 80 9 rts return from subroutine sp (sp) + 1; pull (pch) sp (sp) + 1; pull (pcl) inh 81 6 sbc # opr sbc opr sbc opr sbc opr ,x sbc opr ,x sbc ,x subtract memory byte and carry bit from accumulator a (a) ?(m) ?(c) ? ?? imm dir ext ix2 ix1 ix a2 b2 c2 d2 e2 f2 ii dd hh ll ee ff ff 2 3 4 5 4 3 sec set carry bit c 1 1 inh 99 2 sei set interrupt mask i 1 1 inh 9b 2 sta opr sta opr sta opr ,x sta opr ,x sta ,x store accumulator in memory m (a) ? ? dir ext ix2 ix1 ix b7 c7 d7 e7 f7 dd hh ll ee ff ff 4 5 6 5 4 stop stop oscillator and enable irq pin 0 inh 8e 2 stx opr stx opr stx opr ,x stx opr ,x stx ,x store index register in memory m (x) ? ? dir ext ix2 ix1 ix bf cf df ef ff dd hh ll ee ff ff 4 5 6 5 4 sub # opr sub opr sub opr sub opr ,x sub opr ,x sub ,x subtract memory byte from accumulator a (a) ?(m) ?? imm dir ext ix2 ix1 ix a0 b0 c0 d0 e0 f0 ii dd hh ll ee ff ff 2 3 4 5 4 3 table 4-6. instruction set summary (sheet 5 of 6) source form operation description effect on ccr address mode opcode operand cycles hinzc c b0 b7 b0 b7 c
central processor unit (cpu) instruction set mc68hc705kj1 rev. 2.0 technical data motorola central processor unit (cpu) 61 swi software interrupt pc (pc) + 1; push (pcl) sp (sp) ?1; push (pch) sp (sp) ?1; push (x) sp (sp) ?1; push (a) sp (sp) ?1; push (ccr) sp (sp) ?1; i 1 pch interrupt vector high byte pcl interrupt vector low byte 1 inh 83 10 tax transfer accumulator to index register x (a) inh 97 2 tst opr tsta tstx tst opr ,x tst ,x test memory byte for negative or zero (m) ?$00 ?? dir inh inh ix1 ix 3d 4d 5d 6d 7d dd ff 4 3 3 5 4 txa transfer index register to accumulator a (x) inh 9f 2 wait stop cpu clock and enable interrupts 0 inh 8f 2 a accumulator opr operand (one or two bytes) c carry/borrow ?g pc program counter ccr condition code register pch program counter high byte dd direct address of operand pcl program counter low byte dd rr direct address of operand and relative offset of branch instruction rel relative addressing mode dir direct addressing mode rel relative program counter offset byte ee ff high and low bytes of offset in indexed, 16-bit offset addressing rr relative program counter offset byte ext extended addressing mode sp stack pointer ff offset byte in indexed, 8-bit offset addressing x index register h half-carry ?g z zero ?g hh ll high and low bytes of operand address in extended addressing # immediate value i interrupt mask logical and ii immediate operand byte logical or imm immediate addressing mode logical exclusive or inh inherent addressing mode ( ) contents of ix indexed, no offset addressing mode ? ) negation (twos complement) ix1 indexed, 8-bit offset addressing mode loaded with ix2 indexed, 16-bit offset addressing mode ? if m memory location : concatenated with n negative ?g ? set or cleared n any bit not affected table 4-6. instruction set summary (sheet 6 of 6) source form operation description effect on ccr address mode opcode operand cycles hinzc
technical data mc68hc705kj1 rev. 2.0 62 central processor unit (cpu) motorola central processor unit (cpu) table 4-7. opcode map bit manipulation branch read-modify-write control register/memory dir dir rel dir inh inh ix1 ix inh inh imm dir ext ix2 ix1 ix 0123456789 abcdef 0 5 brset0 3 dir 5 bset0 2 dir 3 bra 2 rel 5 neg 2 dir 3 nega 1 inh 3 negx 1 inh 6 neg 2 ix1 5 neg 1ix 9 rti 1 inh 2 sub 2 imm 3 sub 2 dir 4 sub 3 ext 5 sub 3 ix2 4 sub 2 ix1 3 sub 1ix 0 1 5 brclr0 3 dir 5 bclr0 2 dir 3 brn 2 rel 6 rts 1 inh 2 cmp 2 imm 3 cmp 2 dir 4 cmp 3 ext 5 cmp 3 ix2 4 cmp 2 ix1 3 cmp 1ix 1 2 5 brset1 3 dir 5 bset1 2 dir 3 bhi 2 rel 11 mul 1 inh 2 sbc 2 imm 3 sbc 2 dir 4 sbc 3 ext 5 sbc 3 ix2 4 sbc 2 ix1 3 sbc 1ix 2 3 5 brclr1 3 dir 5 bclr1 2 dir 3 bls 2 rel 5 com 2 dir 3 coma 1 inh 3 comx 1 inh 6 com 2 ix1 5 com 1ix 10 swi 1 inh 2 cpx 2 imm 3 cpx 2 dir 4 cpx 3 ext 5 cpx 3 ix2 4 cpx 2 ix1 3 cpx 1ix 3 4 5 brset2 3 dir 5 bset2 2 dir 3 bcc 2 rel 5 lsr 2 dir 3 lsra 1 inh 3 lsrx 1 inh 6 lsr 2 ix1 5 lsr 1ix 2 and 2 imm 3 and 2 dir 4 and 3 ext 5 and 3 ix2 4 and 2 ix1 3 and 1ix 4 5 5 brclr2 3 dir 5 bclr2 2 dir 3 bcs/blo 2 rel 2 bit 2 imm 3 bit 2 dir 4 bit 3 ext 5 bit 3 ix2 4 bit 2 ix1 3 bit 1ix 5 6 5 brset3 3 dir 5 bset3 2 dir 3 bne 2 rel 5 ror 2 dir 3 rora 1 inh 3 rorx 1 inh 6 ror 2 ix1 5 ror 1ix 2 lda 2 imm 3 lda 2 dir 4 lda 3 ext 5 lda 3 ix2 4 lda 2 ix1 3 lda 1ix 6 7 5 brclr3 3 dir 5 bclr3 2 dir 3 beq 2 rel 5 asr 2 dir 3 asra 1 inh 3 asrx 1 inh 6 asr 2 ix1 5 asr 1ix 2 ta x 1 inh 4 sta 2 dir 5 sta 3 ext 6 sta 3 ix2 5 sta 2 ix1 4 sta 1ix 7 8 5 brset4 3 dir 5 bset4 2 dir 3 bhcc 2 rel 5 asl/lsl 2 dir 3 asla/lsla 1 inh 3 aslx/lslx 1 inh 6 asl/lsl 2 ix1 5 asl/lsl 1ix 2 clc 1 inh 2 eor 2 imm 3 eor 2 dir 4 eor 3 ext 5 eor 3 ix2 4 eor 2 ix1 3 eor 1ix 8 9 5 brclr4 3 dir 5 bclr4 2 dir 3 bhcs 2 rel 5 rol 2 dir 3 rola 1 inh 3 rolx 1 inh 6 rol 2 ix1 5 rol 1ix 2 sec 1 inh 2 adc 2 imm 3 adc 2 dir 4 adc 3 ext 5 adc 3 ix2 4 adc 2 ix1 3 adc 1ix 9 a 5 brset5 3 dir 5 bset5 2 dir 3 bpl 2 rel 5 dec 2 dir 3 deca 1 inh 3 decx 1 inh 6 dec 2 ix1 5 dec 1ix 2 cli 1 inh 2 ora 2 imm 3 ora 2 dir 4 ora 3 ext 5 ora 3 ix2 4 ora 2 ix1 3 ora 1ix a b 5 brclr5 3 dir 5 bclr5 2 dir 3 bmi 2 rel 2 sei 1 inh 2 add 2 imm 3 add 2 dir 4 add 3 ext 5 add 3 ix2 4 add 2 ix1 3 add 1ix b c 5 brset6 3 dir 5 bset6 2 dir 3 bmc 2 rel 5 inc 2 dir 3 inca 1 inh 3 incx 1 inh 6 inc 2 ix1 5 inc 1ix 2 rsp 1 inh 2 jmp 2 dir 3 jmp 3 ext 4 jmp 3 ix2 3 jmp 2 ix1 2 jmp 1ix c d 5 brclr6 3 dir 5 bclr6 2 dir 3 bms 2 rel 4 tst 2 dir 3 tsta 1 inh 3 tstx 1 inh 5 tst 2 ix1 4 tst 1ix 2 nop 1 inh 6 bsr 2 rel 5 jsr 2 dir 6 jsr 3 ext 7 jsr 3 ix2 6 jsr 2 ix1 5 jsr 1ix d e 5 brset7 3 dir 5 bset7 2 dir 3 bil 2 rel 2 stop 1 inh 2 ldx 2 imm 3 ldx 2 dir 4 ldx 3 ext 5 ldx 3 ix2 4 ldx 2 ix1 3 ldx 1ix e f 5 brclr7 3 dir 5 bclr7 2 dir 3 bih 2 rel 5 clr 2 dir 3 clra 1 inh 3 clrx 1 inh 6 clr 2 ix1 5 clr 1ix 2 wait 1 inh 2 txa 1 inh 4 stx 2 dir 5 stx 3 ext 6 stx 3 ix2 5 stx 2 ix1 4 stx 1ix f inh = inherent rel = relative imm = immediate ix = indexed, no offset dir = direct ix1 = indexed, 8-bit offset ext = extended ix2 = indexed, 16-bit offset 0 msb of opcode in hexadecimal lsb of opcode in hexadecimal 0 5 brset0 3 dir number of cycles opcode mnemonic number of bytes/addressing mode lsb msb lsb msb lsb msb
mc68hc705kj1 rev. 2.0 technical data motorola resets and interrupts 63 technical data ?mc68hc705kj1 section 5. resets and interrupts 5.1 contents 5.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63 5.3 resets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 5.3.1 power-on reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 5.3.2 external reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 5.3.3 cop watchdog reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 5.3.4 illegal address reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 5.4 interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 5.4.1 software interrupt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 5.4.2 external interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 5.4.3 timer interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 5.4.3.1 real-time interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 5.4.3.2 timer overflow interrupt . . . . . . . . . . . . . . . . . . . . . . . . .69 5.4.4 interrupt processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 5.2 introduction reset initializes the mcu by returning the program counter to a known address and by forcing control and status bits to known states. interrupts temporarily change the sequence of program execution to respond to events that occur during processing.
technical data mc68hc705kj1 rev. 2.0 64 resets and interrupts motorola resets and interrupts 5.3 resets a reset immediately stops the operation of the instruction being executed, initializes certain control and status bits, and loads the program counter with a user-defined reset vector address. the following sources can generate a reset: power-on reset (por) circuit reset pin computer operating properly (cop) watchdog illegal address figure 5-1. reset sources 5.3.1 power-on reset a positive transition on the v dd pin generates a power-on reset. note: the power-on reset is strictly for power-up conditions and cannot be used to detect drops in power supply voltage. a 4064-t cyc (internal clock cycle) delay after the oscillator becomes active allows the clock generator to stabilize. if any reset source is active at the end of this delay, the mcu remains in the reset condition until all reset sources are inactive. dq ck s reset latch internal clock rst to cpu and reset pin v dd peripheral modules illegal address cop watchdog power-on reset
resets and interrupts resets mc68hc705kj1 rev. 2.0 technical data motorola resets and interrupts 65 figure 5-2. power-on reset timing 5.3.2 external reset a logic 0 applied to the reset pin for 1 1/2 t cyc generates an external reset. a schmitt trigger senses the logic level at the reset pin. figure 5-3. external reset timing oscillator stabilization delay (2) v dd osc1 pin internal clock internal address bus notes: internal data bus 1. power-on reset threshold is typically between 1 v and 2 v. 2. 4064 cycles or 128 cycles, depending on state of soscd bit in mor $07fe $07fe $07fe $07fe $07fe $07fe $07ff new pch new pcl (note 1) 3. internal clock, internal address bus, and internal data bus are not available externally. table 5-1. external reset timing characteristic symbol min max unit reset pulse width t rl 1.5 t cyc internal clock internal address bus notes: internal data bus $07fe $07fe $07fe $07fe $07ff new pc 1. internal clock, internal address bus, and internal data bus are not available externally. 2. the next rising edge of the internal clock after the rising edge of reset initiates the reset sequence. new pch t rl new pc new pcl dummy op code reset
technical data mc68hc705kj1 rev. 2.0 66 resets and interrupts motorola resets and interrupts 5.3.3 cop watchdog reset a timeout of the cop watchdog generates a cop reset. the cop watchdog is part of a software error detection system and must be cleared periodically to start a new timeout period. to clear the cop watchdog and prevent a cop reset, write a logic 0 to bit 0 (copc) of the cop register at location $07f0. 5.3.4 illegal address reset an opcode fetch from an address not in ram or eprom generates a reset. 5.4 interrupts the following sources can generate interrupts: swi instruction external interrupt pins irq/v pp pin pa0?a3 pins timer real-time interrupt flag (rtif) timer overflow flag (tof) an interrupt temporarily stops the program sequence to process a particular event. an interrupt does not stop the operation of the instruction being executed, but takes effect when the current instruction completes its execution. interrupt processing automatically saves the cpu registers on the stack and loads the program counter with a user-defined interrupt vector address. 5.4.1 software interrupt the software interrupt (swi) instruction causes a non-maskable interrupt.
resets and interrupts interrupts mc68hc705kj1 rev. 2.0 technical data motorola resets and interrupts 67 5.4.2 external interrupt an interrupt signal on the irq/v pp pin latches an external interrupt request. when the cpu completes its current instruction, it tests the irq latch. if the irq latch is set, the cpu then tests the i bit in the condition code register. if the i bit is clear, the cpu then begins the interrupt sequence. the cpu clears the irq latch during interrupt processing, so that another interrupt signal on the irq/v pp pin can latch another interrupt request during the interrupt service routine. as soon as the i bit is cleared during the return from interrupt, the cpu can recognize the new interrupt request. figure 5-4 shows the irq/v pp pin interrupt logic. figure 5-4. external interrupt logic setting the i bit in the condition code register disables external interrupts. the port a external interrupt bit (pirq) in the mask option register enables pins pa0?a3 to function as external interrupt pins. the external interrupt sensitivity bit (level) in the mask option register controls interrupt triggering sensitivity of external interrupt pins. the irq/v pp pin can be negative-edge triggered only or negative-edge and low-level triggered. port a external interrupt pins can be positive-edge pirq level-sensitive trigger pa3 pa2 pa1 irq pa0 v dd (mor level bit) reset irq vector fetch external interrupt request (mor) to bih & bil instruction processing irqf irqr irqe dq ck irq clr latch
technical data mc68hc705kj1 rev. 2.0 68 resets and interrupts motorola resets and interrupts triggered only or both positive-edge and high-level triggered. the level-sensitive triggering option allows multiple external interrupt sources to be wire-ored to an external interrupt pin. an external interrupt request, shown in figure 5-5 , is latched as long as any source is holding an external interrupt pin low. figure 5-5. external interrupt timing table 5-2. external interrupt timing (v dd = 5.0 vdc) (1) 1. v dd = 5.0 vdc 10%, v ss = 0 vdc, t a = ?0 c to +85 c, unless otherwise noted. characteristic symbol min max unit interrupt pulse width low (edge-triggered) t ilih 125 ns interrupt pulse period t ilil note (2) 2. the minimum t ilil should not be less than the number of interrupt service routine cycles plus 19 t cyc . t cyc table 5-3. external interrupt timing (v dd = 3.3 vdc) (1) 1. v dd = 3.3 vdc 10%, v ss = 0 vdc, t a = ?0 c to +85 c unless otherwise noted. characteristic symbol min max unit interrupt pulse width low (edge-triggered) t ilih 250 ns interrupt pulse period t ilil note (2) 2. the minimum t ilil should not be less than the number of interrupt service routine cycles plus 19 t cyc . t cyc irq t ilih t ilil t ilih ext. int. pin ext. int. pin 1 ext. int. pin n . . . (internal)
resets and interrupts interrupts mc68hc705kj1 rev. 2.0 technical data motorola resets and interrupts 69 5.4.3 timer interrupts the timer can generate the following interrupt requests: real time timer overflow setting the i bit in the condition code register disables timer interrupts. 5.4.3.1 real-time interrupt a real-time interrupt occurs if the real-time interrupt flag, rtif, becomes set while the real-time interrupt enable bit, rtie, is also set. rtif and rtie are in the timer status and control register. 5.4.3.2 timer overflow interrupt a timer overflow interrupt request occurs if the timer overflow flag, tof, becomes set while the timer overflow interrupt enable bit, toie, is also set. tof and toie are in the timer status and control register. 5.4.4 interrupt processing the cpu takes the following actions to begin servicing an interrupt: stores the cpu registers on the stack in the order shown in figure 5-6 sets the i bit in the condition code register to prevent further interrupts loads the program counter with the contents of the appropriate interrupt vector locations: $07fc and $07fd (software interrupt vector) $07fa and $07fb (external interrupt vector) $07f8 and $07f9 (timer interrupt vector) the return-from-interrupt (rti) instruction causes the cpu to recover the cpu registers from the stack as shown in figure 5-6 .
technical data mc68hc705kj1 rev. 2.0 70 resets and interrupts motorola resets and interrupts figure 5-6. interrupt stacking order condition code register $00c0 (bottom of stack) $00c1 $00c2 accumulator index register program counter (high byte) program counter (low byte) $00fd $00fe $00ff (top of stack) 1 2 3 4 5 5 4 3 2 1 unstacking order stacking order
resets and interrupts interrupts mc68hc705kj1 rev. 2.0 technical data motorola resets and interrupts 71 table 5-4. reset/interrupt vector addresses function source local mask global mask priority (1 = highest) vector address reset power-on reset pin cop watchdog (1) illegal address none none 1 $07fe $07ff software interrupt (swi) user code none none same priority as instruction $07fc $07fd external interrupt irq/v pp pin irqe i bit 2 $07fa $07fb timer interrupts rtif bit tof bit rtie bit toie bit i bit 3 $07f8 $07f9 1. the cop watchdog is programmable in the mask option register.
technical data mc68hc705kj1 rev. 2.0 72 resets and interrupts motorola resets and interrupts figure 5-7. interrupt flowchart external interrupt? i bit set? timer interrupt? fetch next instruction. swi instruction? rti instruction? stack pc, x, a, ccr. set i bit. load pc with interrupt vector. yes yes yes yes yes unstack ccr, a, x, pc. execute instruction. clear irq latch. no no no no no from reset
mc68hc705kj1 rev. 2.0 technical data motorola low-power modes 73 technical data ?mc68hc705kj1 section 6. low-power modes 6.1 contents 6.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74 6.3 exiting stop and wait modes . . . . . . . . . . . . . . . . . . . . . . . . . .74 6.4 effects of stop and wait modes . . . . . . . . . . . . . . . . . . . . . . . .75 6.4.1 clock generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 6.4.1.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 6.4.1.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 6.4.2 cpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 6.4.2.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 6.4.2.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 6.4.3 cop watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 6.4.3.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 6.4.3.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 6.4.4 timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.4.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.4.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.5 eprom/otprom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.5.1 stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.4.5.2 wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 6.5 data-retention mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 6.6 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79
technical data mc68hc705kj1 rev. 2.0 74 low-power modes motorola low-power modes 6.2 introduction the mcu can enter the following low-power standby modes: stop mode ?the stop instruction puts the mcu in its lowest power-consumption mode. wait mode ?the wait instruction puts the mcu in an intermediate power-consumption mode. halt mode ?halt mode is identical to wait mode, except that an oscillator stabilization delay of 1 to 4064 internal clock cycles occurs when the mcu exits halt mode. the stop-to-wait conversion bit, swait, in the mask option register, enables halt mode. enabling halt mode prevents the computer operating properly (cop) watchdog from being inadvertently turned off by a stop instruction. data-retention mode ?in data-retention mode, the mcu retains ram contents and cpu register contents at v dd voltages as low as 2.0 vdc. the data-retention feature allows the mcu to remain in a low power-consumption state during which it retains data, but the cpu cannot execute instructions. 6.3 exiting stop and wait modes the following events bring the mcu out of stop mode and load the program counter with the reset vector or with an interrupt vector: exiting stop mode external reset ?a logic 0 on the reset pin resets the mcu, starts the cpu clock, and loads the program counter with the contents of locations $07fe and $07ff. external interrupt a high-to-low transition on the irq/v pp pin or a low-to-high transition on an enabled port a external interrupt pin starts the cpu clock and loads the program counter with the contents of locations $07fa and $07fb.
low-power modes effects of stop and wait modes mc68hc705kj1 rev. 2.0 technical data motorola low-power modes 75 exiting wait mode external reset ?a logic 0 on the reset pin resets the mcu, starts the cpu clock, and loads the program counter with the contents of locations $07fe and $07ff. external interrupt a high-to-low transition on the irq/v pp pin or a low-to-high transition on an enabled port a external interrupt pin starts the cpu clock and loads the program counter with the contents of locations $07fa and $07fb. cop watchdog reset a timeout of the cop watchdog resets the mcu, starts the cpu clock, and loads the program counter with the contents of locations $07fe and $07ff. software can enable timer interrupts so that the mcu periodically can exit wait mode to reset the cop watchdog. timer interrupt real-time interrupt requests and timer overflow interrupt requests start the mcu clock and load the program counter with the contents of locations $07f8 and $07f9. 6.4 effects of stop and wait modes the stop and wait instructions have the following effects on mcu modules. 6.4.1 clock generation effects of stop and wait on clock generation are discussed here. 6.4.1.1 stop the stop instruction disables the internal oscillator, stopping the cpu clock and all peripheral clocks. after exiting stop mode, the cpu clock and all enabled peripheral clocks begin running after the oscillator stabilization delay. note: the oscillator stabilization delay holds the mcu in reset for the first 4064 internal clock cycles.
technical data mc68hc705kj1 rev. 2.0 76 low-power modes motorola low-power modes 6.4.1.2 wait the wait instruction disables the cpu clock. after exiting wait mode, the cpu clock and all enabled peripheral clocks immediately begin running. 6.4.2 cpu effects of stop and wait on the cpu are discussed here. 6.4.2.1 stop the stop instruction: clears the interrupt mask (i bit) in the condition code register, enabling external interrupts disables the cpu clock after exiting stop mode, the cpu clock begins running after the oscillator stabilization delay. after exit from stop mode by external interrupt, the i bit remains clear. after exit from stop mode by reset, the i bit is set. 6.4.2.2 wait the wait instruction: clears the interrupt mask (i bit) in the condition code register, enabling interrupts disables the cpu clock after exit from wait mode by interrupt, the i bit remains clear. after exit from wait mode by reset, the i bit is set.
low-power modes effects of stop and wait modes mc68hc705kj1 rev. 2.0 technical data motorola low-power modes 77 6.4.3 cop watchdog effects of stop and wait on the cop watchdog are discussed here. 6.4.3.1 stop the stop instruction: clears the cop watchdog counter disables the cop watchdog clock note: to prevent the stop instruction from disabling the cop watchdog, program the stop-to-wait conversion bit (swait) in the mask option register to logic 1. after exit from stop mode by external interrupt, the cop watchdog counter immediately begins counting from $0000 and continues counting throughout the oscillator stabilization delay. note: immediately after exiting stop mode by external interrupt, service the cop to ensure a full cop timeout period. after exit from stop mode by reset: the cop watchdog counter immediately begins counting from $0000. the cop watchdog counter is cleared at the end of the oscillator stabilization delay and begins counting from $0000 again. 6.4.3.2 wait the wait instruction has no effect on the cop watchdog. note: to prevent a cop timeout during wait mode, exit wait mode periodically to service the cop.
technical data mc68hc705kj1 rev. 2.0 78 low-power modes motorola low-power modes 6.4.4 timer effects of stop and wait on the timer are discussed here. 6.4.4.1 stop the stop instruction: clears the rtie, tofe, rtif, and tof bits in the timer status and control register, disabling timer interrupt requests and removing any pending timer interrupt requests disables the clock to the timer after exiting stop mode by external interrupt, the timer immediately resumes counting from the last value before the stop instruction and continues counting throughout the oscillator stabilization delay. after exiting stop mode by reset and after the oscillator stabilization delay, the timer resumes operation from its reset state. 6.4.4.2 wait the wait instruction has no effect on the timer. 6.4.5 eprom/otprom effects of stop and wait on the eprom/otprom are discussed here. 6.4.5.1 stop the stop instruction during eprom programming clears the epgm bit in the eprom programming register, removing the programming voltage from the eprom. 6.4.5.2 wait the wait instruction has no effect on eprom/otprom operation.
low-power modes data-retention mode mc68hc705kj1 rev. 2.0 technical data motorola low-power modes 79 6.5 data-retention mode in data-retention mode, the mcu retains ram contents and cpu register contents at v dd voltages as low as 2.0 vdc. the data-retention feature allows the mcu to remain in a low power-consumption state during which it retains data, but the cpu cannot execute instructions. to put the mcu in data-retention mode: 1. drive the reset pin to logic 0. 2. lower the v dd voltage. the reset pin must remain low continuously during data-retention mode. to take the mcu out of data-retention mode: 1. return v dd to normal operating voltage. 2. return the reset pin to logic 1. 6.6 timing figure 6-1. stop mode recovery timing t ilih oscillator stabilization delay (5) osc t rl reset irq/v pp irq/v pp internal clock internal address notes: 1. internal clocking from osc1 pin 2. edge-triggered external interrupt mask option 3. edge- and level-triggered external interrupt mask option 4. reset vector shown as example reset or interrupt vector fetch $07fe $07fe $07fe $07fe $07fe $07ff (note 4) bus (note 3) (note 2) (note 1) 5. 4064 cycles or 128 cycles, depending on state of soscd bit in mor
technical data mc68hc705kj1 rev. 2.0 80 low-power modes motorola low-power modes figure 6-2. stop/halt/wait flowchart stop swait bit set? clear i bit in ccr. set irqe bit in iscr. clear tof, rtif, toie, and rtie bits in tscr. turn off internal oscillator. external reset? external interrupt? no no no turn on internal oscillator. reset stabilization timer. yes yes halt yes end of stabilization delay? yes no yes no no no cop reset? timer interrupt? external interrupt? external reset? clear i bit in ccr. set irqe bit in iscr. turn off cpu clock. timer clock active. yes yes yes yes no no no clear i bit in ccr. set irqe bit in iscr. turn off cpu clock. timer clock active. yes yes yes no no turn on cpu clock. 1. load pc with reset vector or 2. service interrupt. a. save cpu registers on stack. b. set i bit in ccr. c. load pc with interrupt vector. external reset? wait external interrupt? timer interrupt? cop reset?
mc68hc705kj1 rev. 2.0 technical data motorola parallel i/o ports 81 technical data ?mc68hc705kj1 section 7. parallel i/o ports 7.1 contents 7.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 7.3 port a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 7.3.1 port a data register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 7.3.2 data direction register a. . . . . . . . . . . . . . . . . . . . . . . . . . .83 7.3.3 pulldown register a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 7.3.4 port led drive capability. . . . . . . . . . . . . . . . . . . . . . . . . . .85 7.3.5 port a i/o pin interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 7.4 port b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 7.4.1 port b data register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 7.4.2 data direction register b. . . . . . . . . . . . . . . . . . . . . . . . . . .87 7.4.3 pulldown register b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 7.5 i/o port electrical characteristics . . . . . . . . . . . . . . . . . . . . . . .90 7.2 introduction ten bidirectional pins form one 8-bit input/output (i/o) port and one 2-bit i/o port. all the bidirectional port pins are programmable as inputs or outputs. note: connect any unused i/o pins to an appropriate logic level, either v dd or v ss . although the i/o ports do not require termination for proper operation, termination reduces excess current consumption and the possibility of electrostatic damage.
technical data mc68hc705kj1 rev. 2.0 82 parallel i/o ports motorola parallel i/o ports addr. register name: bit 7 6 5 4 3 2 1 bit 0 $0000 port a data register (porta) see page 83. read: pa7 pa6 pa5 pa4 pa3 pa2 pa1 pa0 write: reset: unaffected by reset $0001 port b data register (portb) see page 86. read: 0 0 see note pb3 pb2 see note write: reset: unaffected by reset $0004 data direction register a (ddra) see page 83. read: ddra7 ddra6 ddra5 ddra4 ddra3 ddra2 ddra1 ddra0 write: reset: 0 0 0 0 0 0 0 0 $0005 data direction register b (ddrb) see page 87. read: 0 0 see note ddrb3 ddrb2 see note write: reset: 0 0 0 0 0 0 0 0 $0010 port a pulldown register (pdra) see page 85. read: write: pdia7 pdia6 pdia5 pdia4 pdia3 pdia2 pdia1 pdia0 reset: 0 0 0 0 0 0 0 0 $0011 port b pulldown register (pdrb) see page 89. read: write: see note pdib3 pdib2 see note reset: 0 0 0 0 0 0 = unimplemented note: pb5, pb4, pb1, and pb0 should be configured as inputs at all times. these bits are available for read/write but are not availab le exter- nally. configuring them as inputs will ensure that the pulldown devices are enabled, thus properly terminating them. figure 7-1. parallel i/o port register summary
parallel i/o ports port a mc68hc705kj1 rev. 2.0 technical data motorola parallel i/o ports 83 7.3 port a port a is an 8-bit bidirectional port. 7.3.1 port a data register the port a data register contains a latch for each port a pin. pa[7:0] ?port a data bits these read/write bits are software programmable. data direction of each port a pin is under the control of the corresponding bit in data direction register a. reset has no effect on port a data. 7.3.2 data direction register a data direction register a determines whether each port a pin is an input or an output. address: $0000 bit 7 654321 bit 0 read: pa7 pa6 pa5 pa4 pa3 pa2 pa1 pa0 write: reset: unaffected by reset figure 7-2. port a data register (porta) address: $0004 bit 7 654321 bit 0 read: ddra7 ddra6 ddra5 ddra4 ddra3 ddra2 ddra1 ddra0 write: reset: 00000000 figure 7-3. data direction register a (ddra)
technical data mc68hc705kj1 rev. 2.0 84 parallel i/o ports motorola parallel i/o ports ddra[7:0] ?data direction register a bits these read/write bits control port a data direction. reset clears ddra[7:0], configuring all port a pins as inputs. 1 = corresponding port a pin configured as output 0 = corresponding port a pin configured as input note: avoid glitches on port a pins by writing to the port a data register before changing data direction register a bits from 0 to 1. figure 7-4 shows the i/o logic of port a. figure 7-4. port a i/o circuitry writing a logic 1 to a ddra bit enables the output buffer for the corresponding port a pin; a logic 0 disables the output buffer. when bit ddrax is a logic 1, reading address $0000 reads the pax data latch. when bit ddrax is a logic 0, reading address $0000 reads the voltage level on the pin. the data latch can always be written, regardless of the state of its data direction bit. table 7-1 summarizes the operation of the port a pins. read ddra write ddra reset write porta read porta pax internal data bus ddrax pax pdrax swpdi 100- a pulldown (pa0?a3 to irq module) write pdra 10-ma sink capability (pins pa4?a7 only)
parallel i/o ports port a mc68hc705kj1 rev. 2.0 technical data motorola parallel i/o ports 85 7.3.3 pulldown register a pulldown register a inhibits the pulldown devices on port a pins programmed as inputs. note: if the swpdi bit in the mask option register is programmed to logic 1, reset initializes all port a pins as inputs with disabled pulldown devices. pdia[7:0] ?pulldown inhibit a bits pdia[7:0] disable the port a pulldown devices. reset clears pdia[7:0]. 1 = corresponding port a pulldown device disabled 0 = corresponding port a pulldown device not disabled 7.3.4 port led drive capability all outputs can drive light-emitting diodes (leds). these pins can sink approximately 10 ma of current to v ss . table 7-1. port a pin operation data direction bit i/o pin mode accesses to data bit read write 0 input, high-impedance pin latch (1) 1. writing affects the data register but does not affect input. 1 output latch latch address: $0010 bit 7 654321 bit 0 read: write: pdia7 pdia6 pdia5 pdia4 pdia3 pdia2 pdia1 pdia0 reset: 00000000 = unimplemented figure 7-5. pulldown register a (pdra)
technical data mc68hc705kj1 rev. 2.0 86 parallel i/o ports motorola parallel i/o ports 7.3.5 port a i/o pin interrupts if the pirq bit in the mask option register is programmed to logic 1, pa0?a3 pins function as external interrupt pins. (see section 9. external interrupt module (irq) .) 7.4 port b port b is a 2-bit bidirectional port. 7.4.1 port b data register the port b data register contains a latch for each port b pin. pb[3:2] ?port b data bits these read/write bits are software programmable. data direction of each port b pin is under the control of the corresponding bit in data direction register b. reset has no effect on port b data. note: pb4?b5 and pb0?b1 should be configured as inputs at all times. these bits are available for read/write but are not available externally. configuring them as inputs will ensure that the pulldown devices are enabled, thus properly terminating them. address: $0001 bit 7 654321 bit 0 read: 0 0 see note pb3 pb2 see note write: reset: unaffected by reset = unimplemented note: pb5, pb4, pb1, and pb0 should be configured as inputs at all times. these bits are available for read/write but are not available externally. configuring them as inputs will ensure that the pulldown devices are enabled, thus properly terminating them. figure 7-6. port b data register (portb)
parallel i/o ports port b mc68hc705kj1 rev. 2.0 technical data motorola parallel i/o ports 87 7.4.2 data direction register b data direction register b determines whether each port b pin is an input or an output. ddrb[3:2] ?data direction register b bits these read/write bits control port b data direction. reset clears ddrb[3:2], configuring all port b pins as inputs. 1 = corresponding port b pin configured as output 0 = corresponding port b pin configured as input note: avoid glitches on port b pins by writing to the port b data register before changing data direction register b bits from 0 to 1. figure 7-8 shows the i/o logic of port b. address: $0005 bit 7 654321 bit 0 read: 0 0 see notes ddrb3 ddrb2 see note write: reset: 00000000 = unimplemented note: ddrb5, ddrb4, ddrb1, and ddrb0 should be configured as inputs at all times. these bits are available for read/write but are not available externally. configuring them as inputs will ensure that the pulldown devices are enabled, thus properly terminating them. figure 7-7. data direction register b (ddrb)
technical data mc68hc705kj1 rev. 2.0 88 parallel i/o ports motorola parallel i/o ports figure 7-8. port b i/o circuitry writing a logic 1 to a ddrb bit enables the output buffer for the corresponding port b pin; a logic 0 disables the output buffer. when bit ddrbx is a logic 1, reading address $0001 reads the pbx data latch. when bit ddrbx is a logic 0, reading address $0001 reads the voltage level on the pin. the data latch can always be written, regardless of the state of its data direction bit. table 7-2 summarizes the operation of the port b pins. table 7-2. port b pin operation data direction bit i/o pin mode accesses to data bit read write 0 input, high-impedance pin latch (1) 1. writing affects the data register, but does not affect input. 1 output latch latch read ddrb write ddrb reset write portb read portb pbx internal data bus ddrbx pbx pdrbx swpdi 100- a pulldown write pdrb
parallel i/o ports port b mc68hc705kj1 rev. 2.0 technical data motorola parallel i/o ports 89 7.4.3 pulldown register b pulldown register b inhibits the pulldown devices on port b pins programmed as inputs. note: if the swpdi bit in the mask option register is programmed to logic 1, reset initializes all port b pins as inputs with disabled pulldown devices. pdib[3:2] ?pulldown inhibit b bits pdib[3:2] disable the port b pulldown devices. reset clears pdib[3:2]. 1 = corresponding port b pulldown device disabled 0 = corresponding port b pulldown device not disabled address: $0011 bit 7 654321 bit 0 read: write: see note pdib3 pdib2 see note reset: 000000 = unimplemented note: these pulldown devices are permanently enabled when pb5, pb4, pb1 and pb0 are configured as inputs. figure 7-9. pulldown register b (pdrb)
technical data mc68hc705kj1 rev. 2.0 90 parallel i/o ports motorola parallel i/o ports 7.5 i/o port electrical characteristics table 7-3. i/o port dc electrical characteristics (v dd = 5.0 v) (1) 1. v dd = 5.0 vdc 10%, v ss = 0 vdc, t a = ?0 c to +85 c, unless otherwise noted. characteristic symbol min typ (2) 2. typical values reflect average measurements at midpoint of voltage range, 25 c. max unit current drain per pin i 25 ma output high voltage (i load = 2.5 ma) pa4?a7 (i load = ?.5 ma) pb2?b3, pa0?a3 v oh v dd ?.8 v dd ?.8 v output low voltage (i load = 10.0 ma) pa0?a7, pb2?b3 v ol 0.8 v input high voltage pa0?a7, pb2?b3 v ih 0.7 x v dd v dd v input low voltage pa0?a7, pb2?b3 v il v ss 0.2 x v dd v i/o ports hi-z leakage current pa0?a7, pb2?b3 (without individual pulldown activated) i il 0.2 1 a input pulldown current pa0?a7, pb2?b3 (with individual pulldown activated) i il 35 80 200 a
parallel i/o ports i/o port electrical characteristics mc68hc705kj1 rev. 2.0 technical data motorola parallel i/o ports 91 table 7-4. i/o port dc electrical characteristics (v dd = 3.3 v) (1) characteristic symbol min typ (2) max unit current drain per pin i 25 ma output high voltage (i load = 0.8 ma) pa4?a7 (i load = 1.5 ma) pa0?a3, pb2?b3 v oh v dd ?.3 v dd ?.3 v output low voltage (i load = 5.0 ma) pa4?a7 (i load = 3.5 ma) pa0?a3, pb2?b3 v ol 0.5 0.5 v input high voltage pa0?a7, pb2?b3 v ih 0.7 x v dd v dd v input low voltage pa0?a7, pb2?b3 v il v ss 0.2 x v dd v i/o ports hi-z leakage current pa0?a7, pb2?b3 (without individual pulldown activated) i il 0.1 1 a input pulldown current pa0?a7, pb2?b3 (with individual pulldown activated) i il 12 30 100 a 1. v dd = 3.3 vdc 10%, v ss = 0 vdc, t a = ?0 c to +85 c, unless otherwise noted. 2. typical values reflect average measurements at midpoint of voltage range, 25 c.
technical data mc68hc705kj1 rev. 2.0 92 parallel i/o ports motorola parallel i/o ports
mc68hc705kj1 rev. 2.0 technical data motorola computer operating properly module (cop) 93 technical data ?mc68hc705kj1 section 8. computer operating properly module (cop) 8.1 contents 8.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 8.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 8.4 operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94 8.4.1 cop watchdog timeout . . . . . . . . . . . . . . . . . . . . . . . . . . .94 8.4.2 cop watchdog timeout period . . . . . . . . . . . . . . . . . . . . . .94 8.4.3 clearing the cop watchdog . . . . . . . . . . . . . . . . . . . . . . . .95 8.5 interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 8.6 cop register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 8.7 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 8.7.1 stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 8.7.2 wait mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 8.2 introduction the computer operating properly (cop) watchdog resets the mcu in case of software failure. software that is operating properly periodically services the cop watchdog and prevents cop reset. the cop watchdog function is programmable by the copen bit in the mask option register. 8.3 features the computer operating properly module (cop) includes these features: protection from runaway software wait mode and halt mode operations
technical data mc68hc705kj1 rev. 2.0 94 computer operating properly module (cop) motorola computer operating properly module (cop) 8.4 operation operation of the cop module is discussed here. 8.4.1 cop watchdog timeout four counter stages at the end of the timer make up the cop watchdog. the cop resets the mcu if the timeout period occurs before the cop watchdog timer is cleared by application software and the irq/v pp pin voltage is between v ss and v dd . periodically clearing the counter starts a new timeout period and prevents cop reset. a cop watchdog timeout indicates that the software is not executing instructions in the correct sequence. note: the internal clock drives the cop watchdog. therefore, the cop watchdog cannot generate a reset for errors that cause the internal clock to stop. the cop watchdog depends on a power supply voltage at or above a minimum specification and is not guaranteed to protect against brownout. 8.4.2 cop watchdog timeout period the cop watchdog timer function is implemented by dividing the output of the real-time interrupt circuit (rti) by eight. the rti select bits in the timer status and control register control rti output, and the selected output drives the cop watchdog. (see timer status and control register in section 10. multifunction timer module .) note that the minimum cop timeout period is seven times the rti period. the cop is cleared asynchronously with the value in the rti divider; hence, the cop timeout period will vary between 7x and 8x the rti period.
computer operating properly module (cop) interrupts mc68hc705kj1 rev. 2.0 technical data motorola computer operating properly module (cop) 95 8.4.3 clearing the cop watchdog to clear the cop watchdog and prevent a cop reset, write a logic 0 to bit 0 (copc) of the cop register at location $07f0 (see figure 8-1 ). clearing the cop bit disables the cop watchdog timer regardless of the irq/v pp pin voltage. if the main program executes within the cop timeout period, the clearing routine should be executed only once. if the main program takes longer than the cop timeout period, the clearing routine must be executed more than once. note: place the clearing routine in the main program and not in an interrupt routine. clearing the cop watchdog in an interrupt routine might prevent cop watchdog timeouts even though the main program is not operating properly. 8.5 interrupts the cop watchdog does not generate interrupts. 8.6 cop register the cop register (copr) is a write-only register that returns the contents of eprom location $07f0 when read. copc ?cop clear bit this write-only bit resets the cop watchdog. reading address $07f0 returns undefined results. address: $07f0 bit 7 654321 bit 0 read: write: copc reset: uuuuuuu0 = unimplemented u = unaffected figure 8-1. cop register (copr)
technical data mc68hc705kj1 rev. 2.0 96 computer operating properly module (cop) motorola computer operating properly module (cop) 8.7 low-power modes the stop and wait instructions have the following effects on the cop watchdog. 8.7.1 stop mode the stop instruction clears the cop watchdog counter and disables the clock to the cop watchdog. note: to prevent the stop instruction from disabling the cop watchdog, program the stop-to-wait conversion bit (swait) in the mask option register to logic 1. upon exit from stop mode by external reset: the counter begins counting from $0000. the counter is cleared again after the oscillator stabilization delay and begins counting from $0000 again. upon exit from stop mode by external interrupt: the counter begins counting from $0000. the counter is not cleared again after the oscillator stabilization delay and continues counting throughout the oscillator stabilization delay. note: immediately after exiting stop mode by external interrupt, service the cop to ensure a full cop timeout period. 8.7.2 wait mode the wait instruction has no effect on the cop watchdog. note: to prevent a cop timeout during wait mode, exit wait mode periodically to service the cop.
mc68hc705kj1 rev. 2.0 technical data motorola external interrupt module (irq) 97 technical data ?mc68hc705kj1 section 9. external interrupt module (irq) 9.1 contents 9.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 9.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 9.4 operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 9.4.1 irq/v pp pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 9.4.2 optional external interrupts . . . . . . . . . . . . . . . . . . . . . . . .101 9.5 irq status and control register . . . . . . . . . . . . . . . . . . . . . .102 9.6 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104 9.2 introduction the external interrupt (irq) module provides asynchronous external interrupts to the cpu. the following sources can generate external interrupts: irq/v pp pin pa0?a3 pins 9.3 features the external interrupt module (irq) includes these features: dedicated external interrupt pin ( irq/v pp ) selectable interrupt on four input/output (i/o) pins (pa0?a3) programmable edge-only or edge- and level-interrupt sensitivity
technical data mc68hc705kj1 rev. 2.0 98 external interrupt module (irq) motorola external interrupt module (irq) 9.4 operation the interrupt request/programming voltage pin ( irq/v pp ) and port a pins 0? (pa0?a3) provide external interrupts. the pirq bit in the mask option register (mor) enables pa0?a3 as irq interrupt sources, which are combined into a single or?ng function to be latched by the irq latch. figure 9-1 shows the structure of the irq module. after completing its current instruction, the cpu tests the irq latch. if the irq latch is set, the cpu then tests the i bit in the condition code register and the irqe bit in the irq status and control register. if the i bit is clear and the irqe bit is set, the cpu then begins the interrupt sequence. this interrupt is serviced by the interrupt service routine located at $07fa and $07fb. the cpu clears the irq latch while it fetches the interrupt vector, so that another external interrupt request can be latched during the interrupt service routine. as soon as the i bit is cleared during the return from interrupt, the cpu can recognize the new interrupt request. figure 9-3 shows the sequence of events caused by an interrupt.
external interrupt module (irq) operation mc68hc705kj1 rev. 2.0 technical data motorola external interrupt module (irq) 99 figure 9-1. irq module block diagram register name bit 7 6 5 4 3 2 1 bit 0 irq status and control register (iscr) see page 102. read: irqe 0 0 0 irqf 0 0 0 write: r irqr reset: 1 0 0 0 0 0 0 0 = unimplemented r = reserved figure 9-2. irq module i/o register summary table 9-1. i/o register address summary register: iscr address: $000a pirq level-sensitive trigger pa 3 pa 2 pa 1 irq pa0 v dd (mor level bit) reset irq vector fetch external interrupt request (mor) to bih & bil instruction processing irqf irqr irqe dq ck irq clr latch
technical data mc68hc705kj1 rev. 2.0 100 external interrupt module (irq) motorola external interrupt module (irq) figure 9-3. interrupt flowchart external interrupt? i bit set? timer interrupt? fetch next instruction. swi instruction? rti instruction? stack pcl, pch, x, a, ccr. set i bit. load pc with interrupt vector. yes yes yes yes yes unstack ccr, a, x, pch, pcl. execute instruction. clear irq latch. no no no no no from reset
external interrupt module (irq) operation mc68hc705kj1 rev. 2.0 technical data motorola external interrupt module (irq) 101 9.4.1 irq/v pp pin an interrupt signal on the irq/v pp pin latches an external interrupt request. the level bit in the mask option register provides negative edge-sensitive triggering or both negative edge-sensitive and low level-sensitive triggering for the interrupt function. if edge- and level-sensitive triggering is selected, a falling edge or a low level on the irq/v pp pin latches an external interrupt request. edge- and level-sensitive triggering allows the use of multiple wired-or external interrupt sources. an external interrupt request is latched as long as any source is holding the irq/v pp pin low. if level-sensitive triggering is selected, the irq/v pp input requires an external resistor to v dd for wired-or operation. if the irq/v pp pin is not used, it must be tied to the v dd supply. if edge-sensitive-only triggering is selected, a falling edge on the irq/v pp pin latches an external interrupt request. a subsequent external interrupt request can be latched only after the voltage level on the irq/v pp pin returns to logic 1 and then falls again to logic 0. the irq/v pp pin contains an internal schmitt trigger as part of its input to improve noise immunity. the voltage on this pin can affect the mode of operation and should not exceed v dd . 9.4.2 optional external interrupts the inputs for the lower four bits of port a (pa0?a3) can be connected to the irq pin input of the cpu if enabled by the pirq bit in the mask option register. this capability allows keyboard scan applications where the transitions or levels on the i/o pins will behave the same as the irq/v pp pin except for the inverted phase (logic 1, rising edge). the active state of the irq/v pp pin is a logic 0 (falling edge). the pa0?a3 pins are selected as a group to function as irq interrupts and are enabled by the irqe bit in the irq status and control register. the pa0?a3 pins can be positive-edge triggered only or positive-edge and high-level triggered.
technical data mc68hc705kj1 rev. 2.0 102 external interrupt module (irq) motorola external interrupt module (irq) if edge- and level-sensitive triggering is selected, a rising edge or a high level on a pa0?a3 pin latches an external interrupt request. edge- and level-sensitive triggering allows the use of multiple wired-or external interrupt sources. as long as any source is holding a pa0?a3 pin high, an external interrupt request is latched, and the cpu continues to execute the interrupt service routine. if edge-sensitive only triggering is selected, a rising edge on a pa0?a3 pin latches an external interrupt request. a subsequent external interrupt request can be latched only after the voltage level of the previous interrupt signal returns to logic 0 and then rises again to logic 1. note: the bih and bil instructions apply only to the level on the irq/v pp pin itself and not to the output of the logic or function with the pa0 pa3 pins. the state of the individual port a pins can be checked by reading the appropriate port a pins as inputs. enabled pa0 pa3 pins cause an irq interrupt regardless of whether these pins are configured as inputs or outputs. the irq pin has an internal schmitt trigger. the optional external interrupts (pa0 pa3) do not have internal schmitt triggers. the interrupt mask bit (i) in the condition code register (ccr) disables all maskable interrupt requests, including external interrupt requests. 9.5 irq status and control register the irq status and control register (iscr) controls and monitors operation of the irq module. all unused bits in the iscr read as logic 0s. the irqf bit is cleared and the irqe bit is set by reset. address: $000a bit 7 654321 bit 0 read: irqe 0 0 0 irqf 0 0 0 write: r irqr reset: 10000000 = unimplemented r = reserved figure 9-4. irq status and control register (iscr)
external interrupt module (irq) irq status and control register mc68hc705kj1 rev. 2.0 technical data motorola external interrupt module (irq) 103 irqr ?interrupt request reset bit this write-only bit clears the external interrupt request flag. 1 = clears external interrupt and irqf bit 0 = no effect on external interrupt and irqf bit irqf ?external interrupt request flag the external interrupt request flag is a clearable, read-only bit that is set when an external interrupt request is pending. reset clears the irqf bit. 1 = external interrupt request pending 0 = no external interrupt request pending irqe ?external interrupt request enable bit this read/write bit enables external interrupts. reset sets the irqe bit. 1 = external interrupt requests enabled 0 = external interrupt requests disabled the stop and wait instructions set the irqe bit so that an external interrupt can bring the mcu out of these low-power modes. in addition, reset sets the i bit which masks all interrupt sources.
technical data mc68hc705kj1 rev. 2.0 104 external interrupt module (irq) motorola external interrupt module (irq) 9.6 timing figure 9-5. external interrupt timing table 9-2. external interrupt timing (v dd = 5.0 vdc) (1) 1. v dd = 5.0 vdc 10%, v ss = 0 vdc, t a = ?0 c to + 85 c, unless otherwise noted. characteristic symbol min max unit irq interrupt pulse width low (edge-triggered) t ilih 1.5 t cyc (2) 2. t cyc = 1/f op ; f op = f osc /2. irq interrupt pulse width (edge- and level-triggered) t ilih 1.5 note (3) 3. the minimum t ilil should not be less than the number of interrupt service routine cycles plus 19 t cyc . t cyc pa0?a3 interrupt pulse width high (edge-triggered) t ilil 1.5 t cyc pa0?a3 interrupt pulse width high (edge- and level-triggered) t ilih 1.5 note (3) t cyc table 9-3. external interrupt timing (v dd = 3.3 vdc) (1) 1. v dd = 3.3 vdc 10%, v ss = 0 vdc, t a = ?0 c to + 85 c, unless otherwise noted. characteristic symbol min max unit irq interrupt pulse width low (edge-triggered) t ilih 1.5 t cyc (2) 2. t cyc = 1/f op ; f op = f osc /2. irq interrupt pulse width (edge- and level-triggered) t ilih 1.5 note (3) 3. the minimum t ilil should not be less than the number of interrupt service routine cycles plus 19 t cyc . t cyc pa0?a3 interrupt pulse width high (edge-triggered) t ilil 1.5 t cyc pa0?a3 interrupt pulse width high (edge- and level-triggered) t ilih 1.5 note (3) t cyc irq (internal) t ilih t ilil t ilih irq/v pp pin irq 1 irq n . . .
mc68hc705kj1 rev. 2.0 technical data motorola multifunction timer module 105 technical data ?mc68hc705kj1 section 10. multifunction timer module 10.1 contents 10.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 10.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 10.4 operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 10.5 interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 10.6 i/o registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 10.6.1 timer status and control register . . . . . . . . . . . . . . . . . . .108 10.6.2 timer counter register . . . . . . . . . . . . . . . . . . . . . . . . . . .110 10.7 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 10.7.1 stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 10.7.2 wait mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 10.2 introduction the multifunction timer provides a timing reference with programmable real-time interrupt capability. figure 10-1 shows the timer organization. 10.3 features features of the multifunction timer include: timer overflow four selectable interrupt rates computer operating properly (cop) watchdog timer
technical data mc68hc705kj1 rev. 2.0 106 multifunction timer module motorola multifunction timer module figure 10-1. multifunction timer block diagram clear cop timer timer counter register bits [0:7] of 15-stage overflow internal clock (xtal 2) timer status/control register tof rtif toie rtie tofr rtifr rt1 rt0 rti rate select 2 2 2 2 2 2 2 bits [8:14] of 15-stage ripple counter 8 s r q interrupt request cop reset internal data bus reset ripple counter reset reset reset 4
multifunction timer module operation mc68hc705kj1 rev. 2.0 technical data motorola multifunction timer module 107 10.4 operation a 15-stage ripple counter, preceded by a prescaler that divides the internal clock signal by four, provides the timing reference for the timer functions. the value of the first eight timer stages can be read at any time by accessing the timer counter register at address $0009. a timer overflow function at the eighth stage allows a timer interrupt every 1024 internal clock cycles. the next four stages lead to the real-time interrupt (rti) circuit. the rt1 and rt0 bits in the timer status and control register at address $0008 allow a timer interrupt every 16,384, 32,768, 65,536, or 131,072 clock cycles. the last four stages drive the selectable cop system. (for information on the cop, refer to section 8. computer operating properly module (cop) .) register name bit 7 6 5 4 3 2 1 bit 0 timer status and control register (tscr) see page 108. read: tof rtif toie rtie 00 rt1 rt0 write: tofr rtifr reset: 0 0 0 0 0 0 1 1 timer counter register (tcr) see page 110. read: tmr7 tmr6 tmr5 tmr4 tmr3 tmr2 tmr1 tmr0 write: reset: 0 0 0 0 0 0 0 0 = unimplemented figure 10-2. i/o register summary table 10-1. i/o register address summary register: tscr tcr address: $0008 $0009
technical data mc68hc705kj1 rev. 2.0 108 multifunction timer module motorola multifunction timer module 10.5 interrupts the following timer sources can generate interrupts: timer overflow flag (tof) the tof bit is set when the first eight stages of the counter roll over from $ff to $00. the timer overflow interrupt enable bit, toie, enables tof interrupt requests. real-time interrupt flag (rtif) ?the rtif bit is set when the selected rti output becomes active. the real-time interrupt enable bit, rtie, enables rtif interrupt requests. 10.6 i/o registers the following registers control and monitor the timer operation: timer status and control register (tscr) timer counter register (tcr) 10.6.1 timer status and control register the read/write timer status and control register performs the following functions: flags timer interrupts enables timer interrupts resets timer interrupt flags selects real-time interrupt rates address: $0008 bit 7 654321 bit 0 read: tof rtif toie rtie 00 rt1 rt0 write: tofr rtifr reset: 00000011 = unimplemented figure 10-3. timer status and control register (tscr)
multifunction timer module i/o registers mc68hc705kj1 rev. 2.0 technical data motorola multifunction timer module 109 tof ?timer overflow flag this read-only flag becomes set when the first eight stages of the counter roll over from $ff to $00. tof generates a timer overflow interrupt request if toie is also set. clear tof by writing a logic 1 to the tofr bit. writing to tof has no effect. reset clears tof. rtif ?real-time interrupt flag this read-only flag becomes set when the selected rti output becomes active. rtif generates a real-time interrupt request if rtie is also set. clear rtif by writing a logic 1 to the rtifr bit. writing to rtif has no effect. reset clears rtif. toie ?timer overflow interrupt enable bit this read/write bit enables timer overflow interrupts. reset clears toie. 1 = timer overflow interrupts enabled 0 = timer overflow interrupts disabled rtie ?real-time interrupt enable bit this read/write bit enables real-time interrupts. reset clears rtie. 1 = real-time interrupts enabled 0 = real-time interrupts disabled tofr ?timer overflow flag reset bit writing a logic 1 to this write-only bit clears the tof bit. tofr always reads as logic 0. reset clears tofr. rtifr ?real-time interrupt flag reset bit writing a logic 1 to this write-only bit clears the rtif bit. rtifr always reads as logic 0. reset clears rtifr. rt1 and rt0 ?real-time interrupt select bits these read/write bits select one of four real-time interrupt rates, as shown in table 10-2 . because the selected rti output drives the cop watchdog, changing the real-time interrupt rate also changes the counting rate of the cop watchdog. reset sets rt1 and rt0. note: changing rt1 and rt0 when a cop timeout is imminent can cause a real-time interrupt request to be missed or an additional real-time
technical data mc68hc705kj1 rev. 2.0 110 multifunction timer module motorola multifunction timer module interrupt request to be generated. to prevent this occurrence, clear the cop timer before changing rt1 and rt0. 10.6.2 timer counter register a 15-stage ripple counter is the core of the timer. the value of the first eight stages is readable at any time from the read-only timer counter register shown in figure 10-4 . power-on clears the entire counter chain and the internal clock begins clocking the counter. after 4064 cycles (or 16 cycles if the soscd bit in the mask option register is set), the power-on reset circuit is released, clearing the counter again and allowing the mcu to come out of reset. a timer overflow function at the eighth counter stage allows a timer interrupt every 1024 internal clock cycles. table 10-2. real-time interrupt rate selection rt1:rt0 rti rate rti period (f op = 2 mhz) cop timeout period (?/+1 rti period) minimum cop timeout period (f op = 2 mhz) 00 f op 2 14 8.2 ms 8 x rti period 65.5 ms 01 f op 2 15 16.4 ms 8 x rti period 131.1 ms 10 f op 2 16 32.8 ms 8 x rti period 262.1 ms 11 f op 2 17 65.5 ms 8 x rti period 524.3 ms address: $0009 bit 7 654321 bit 0 read: tcr7 tcr6 tcr5 tcr4 tcr3 tcr2 tcr1 tcr0 write: reset: 00000000 = unimplemented figure 10-4. timer counter register (tcr)
multifunction timer module low-power modes mc68hc705kj1 rev. 2.0 technical data motorola multifunction timer module 111 10.7 low-power modes the stop and wait instructions put the mcu in low power-consumption standby states. 10.7.1 stop mode the stop instruction has the following effects on the timer: clears the timer counter clears interrupt flags (tof and rtif) and interrupt enable bits (tofe and rtie) in tscr, removing any pending timer interrupt requests and disabling further timer interrupts 10.7.2 wait mode the timer remains active after a wait instruction. any enabled timer interrupt request can bring the mcu out of wait mode.
technical data mc68hc705kj1 rev. 2.0 112 multifunction timer module motorola multifunction timer module
mc68hc705kj1 rev. 2.0 technical data motorola electrical specifications 113 technical data ?mc68hc705kj1 section 11. electrical specifications 11.1 contents 11.2 maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 11.3 operating temperature range. . . . . . . . . . . . . . . . . . . . . . . .115 11.4 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 11.5 power considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 11.6 5.0-v dc electrical characteristics . . . . . . . . . . . . . . . . . . .117 11.7 3.3-v dc electrical characteristics . . . . . . . . . . . . . . . . . . . .118 11.8 driver characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119 11.9 typical supply currents . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 11.10 eprom programming characteristics . . . . . . . . . . . . . . . . . .122 11.11 control timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
technical data mc68hc705kj1 rev. 2.0 114 electrical specifications motorola electrical speci?ations 11.2 maximum ratings maximum ratings are the extreme limits to which the mcu can be exposed without permanently damaging it. note: this device is not guaranteed to operate properly at the maximum ratings. for guaranteed operating conditions, refer to 11.6 5.0-v dc electrical characteristics and 11.7 3.3-v dc electrical characteristics table 11-1. maximum ratings (1) 1. voltages are referenced to v ss . rating symbol value unit supply voltage v dd ?.3 to +7.0 v current drain per pin (excluding v dd , v ss ) i25ma input voltage v in v ss ?0.3 to v dd + 0.3 v irq/v pp pin v pp v ss ?0.3 to 2 x v dd + 0.3 v storage temperature range t stg ?5 to +150 c
electrical specifications operating temperature range mc68hc705kj1 rev. 2.0 technical data motorola electrical specifications 115 11.3 operating temperature range 11.4 thermal characteristics package type symbol value (t l to t h ) unit mc68hc705kj1c (1) p (2) , cdw (3) , cs (4) 1. c = extended temperature range 2. p = plastic dual in-line package (pdip) 3. dw = small outline integrated circuit (soic) 4. s = ceramic dip (cerdip) t a ?0 to +85 c characteristic symbol value unit thermal resistance mc68hc705kj1p (1) mc68hc705kj1dw (2) mc68hc705kj1s (3) 1. p = plastic dual in-line package (pdip) 2. dw = small outline integrated circuit (soic) 3. s = ceramic dip (cerdip) ja 60 c/w
technical data mc68hc705kj1 rev. 2.0 116 electrical specifications motorola electrical speci?ations 11.5 power considerations the average chip junction temperature, t j ,in c can be obtained from: (1) where: t a = ambient temperature in c ja = package thermal resistance, junction to ambient in c/w p d = p int + p i/o p int = i cc v cc = chip internal power dissipation p i/o = power dissipation on input and output pins (user-determined) for most applications, p i/o p int and can be neglected. ignoring p i/o , the relationship between p d and t j is approximately: (2) solving equations (1) and (2) for k gives: (3) where k is a constant pertaining to the particular part. k can be determined from equation (3) by measuring p d (at equilibrium) for a known t a . using this value of k, the values of p d and t j can be obtained by solving equations (1) and (2) iteratively for any value of t a . t j t a p d ja () + = p d k t j 273 c + ----------------------------- - = = p d x (t a + 273 c) + j a x (p d )
electrical specifications 5.0-v dc electrical characteristics mc68hc705kj1 rev. 2.0 technical data motorola electrical specifications 117 11.6 5.0-v dc electrical characteristics characteristic (1) 1. v dd = 5.0 vdc 10%, v ss = 0 vdc, t a = ?0 c to +85 c, unless otherwise noted. symbol min typ (2) 2. typical values at midpoint of voltage range, 25 c only max unit output high voltage (i load = 2.5 ma) pa4?a7 (i load = ?.5 ma) pb2?b3, pa0?a3 v oh v dd ?.8 v dd ?.8 v output low voltage (8) (i load = 10.0 ma) pa0?a7, pb2?b3 v ol 0.8 v input high voltage pa0?a7, pb2?b3, irq/v pp , reset, osc1 v ih 0.7 v dd v dd v input low voltage pa0?a7, pb2?b3, irq/v pp , reset, osc1 v il v ss 0.2 v dd v supply current (f op = 2.1 mhz; f osc = 4.2 mhz) run mode (3) wait mode (4) stop mode (5) 3. run mode i dd is measured using external square wave clock source; all inputs 0.2 v from rail; no dc loads; less than 50 pf on all outputs; c l = 20 pf on osc2. 4. wait mode i dd : only timer system active. wait mode is affected linearly by osc2 capacitance. wait mode is measured with all ports configured as inputs; v il = 0.2 v; v ih =v dd 0.2 v. wait mode i dd is measured using external square wave clock source; all inputs 0.2 v from rail; no dc loads; less than 50 pf on all outputs; c l = 20 pf on osc2. 5. stop mode i dd is measured with osc1 = v ss . stop mode i dd is measured with all ports configured as inputs; v il = 0.2 v; v ih = v dd ?0.2 v. i dd 4.0 1.0 0.1 6.0 2.8 5.0 ma ma a supply current (f op = 4.0 mhz; f osc = 8.0 mhz) run mode (3) wait mode (4) stop mode (5) i dd 5.2 1.1 0.1 7.0 3.3 5.0 ma ma a i/o ports hi-z leakage current pa0?a7, pb2?b3 (without individual pulldown activated) i il 0.2 1 a input pulldown current pa0?a7, pb2?b3 (with individual pulldown activated) i il 35 80 200 a input pullup current reset i il ?5 ?5 ?5 a input current (6) reset, irq/v pp , osc1 6. only input high current rated to +1 a on reset. i in 0.2 1 a capacitance ports (as inputs or outputs) reset, irq, osc1, osc2 c out c in 12 8 pf crystal/ceramic resonator oscillator mode internal resistor osc1 to osc2 (7) 7. the r osc value selected for rc oscillator versions of this device is unspecified. 8. maximum current drain for all i/o pins combined should not exceed 100 ma. r osc 1.0 2.0 3.0 m ?
technical data mc68hc705kj1 rev. 2.0 118 electrical specifications motorola electrical speci?ations 11.7 3.3-v dc electrical characteristics characteristic (1) 1. v dd = 3.3 vdc 10%, v ss = 0 vdc, t a = ?0 c to +85 c, unless otherwise noted. symbol min typ (2) 2. typical values at midpoint of voltage range, 25 c only max unit output high voltage (i load = 0.8 ma) pa4?a7 (i load = 1.5 ma) pa0?a3, pb2?b3 v oh v dd ?.3 v dd ?.3 v output low voltage (i load = 5.0 ma) pa4?a7 (i load = 3.5 ma) pa0?a3, pb2?b3 v ol 0.5 0.5 v input high voltage pa0?a7, pb2?b3, irq/v pp , reset, osc1 v ih 0.7 v dd v dd v input low voltage pa0?a7, pb2?b3, irq/v pp , reset, osc1 v il v ss 0.2 v dd v supply current (f op = 1.0 mhz; f osc = 2.0 mhz) run mode (3) wait mode (4) stop mode (5) 3. run mode i dd is measured using external square wave clock source; all inputs 0.2 v from rail; no dc loads; less than 50 pf on all outputs; c l = 20 pf on osc2. 4. wait mode i dd : only timer system active. wait mode is affected linearly by osc2 capacitance. wait mode is measured with all ports configured as inputs; v il = 0.2 v; v ih =v dd 0.2 v. wait mode i dd is measured using external square wave clock source; all inputs 0.2 v from rail; no dc loads; less than 50 pf on all outputs; c l = 20 pf on osc2. 5. stop mode i dd is measured with osc1 = v ss . stop mode i dd is measured with all ports configured as inputs; v il = 0.2 v; v ih = v dd ?0.2 v. i dd 1.2 0.3 0.1 2.5 0.8 5.0 ma ma a supply current (f op = 2.1 mhz; f osc = 4.2 mhz) run mode (3) wait mode (4) stop mode (5) i dd 1.4 0.3 0.1 3.0 1.0 5.0 ma ma a i/o ports hi-z leakage current pa0?a7, pb2?b3 (without individual pulldown activated) i il 0.1 1 a input pulldown current pa0?a7, pb2?b3 (with individual pulldown activated) i il 12 30 100 a input pullup current reset i il ?0 ?5 ?5 a input current (6) reset, irq/v pp , osc1 6. only input high current rated to +1 a on reset. i in 0.1 1 a capacitance ports (as inputs or outputs) reset, irq/v pp , osc1, osc2 c out c in 12 8 pf crystal/ceramic resonator oscillator mode internal resistor osc1 to osc2 (7) 7. the r osc value selected for rc oscillator versions of this device is unspecified. r osc 1.0 2.0 3.0 m ?
electrical specifications driver characteristics mc68hc705kj1 rev. 2.0 technical data motorola electrical specifications 119 11.8 driver characteristics figure 11-1. pa4?a7 typical high-side driver characteristics figure 11-2. pa0?a3 and pb2?b3 typical high-side driver characteristics notes: 1. at v dd = 5.0 v, devices are specified and tested for (v dd ?v oh ) 800 mv @ i oh = ?.5 ma. 2. at v dd = 3.3 v, devices are specified and tested for (v dd ?v oh ) 300 mv @ i oh = ?.8 ma. 0 100 200 300 400 500 600 700 800 0 2 4 6 8 ?0 i oh (ma) v dd ?v oh (mv) ?0 c 85 c 25 c v dd = 3.3 v 0 100 200 300 400 500 600 700 800 0 2 4 6 8 ?0 i oh (ma) v dd ?v oh (mv) ?0 c 85 c 25 c v dd = 5.0 v notes: 1. at v dd = 5.0 v, devices are specified and tested for (v dd ?v oh ) 800 mv @ i oh = ?.5 ma. 2. at v dd = 3.3 v, devices are specified and tested for (v dd ?v oh ) 300 mv @ i oh = ?.5 ma. 0 100 200 300 400 500 600 700 800 0 24 6810 i oh (ma) v dd ?v oh (mv) ?0 c 25 c v dd = 3.3 v 85 c 0 100 200 300 400 500 600 700 800 0 24 6810 i oh (ma) v dd ?v oh (mv) ?0 c 85 c 25 c v dd = 5.0 v
technical data mc68hc705kj1 rev. 2.0 120 electrical specifications motorola electrical speci?ations figure 11-3. pa4?a7 typical low-side driver characteristics figure 11-4. pa0?a3 and pb2?b3 typical low-side driver characteristics notes: 1. at v dd = 5.0 v, devices are specified and tested for v ol 800 mv @ i ol = 10.0 ma. 2. at v dd = 3.3 v, devices are specified and tested for v ol 500 mv @ i ol = 5.0 ma. 0 100 200 300 400 500 600 700 800 0 1020304050 ?0 c 25 c 85 c v dd = 3.3 v 0 100 200 300 400 500 600 700 800 0 1020 3040 50 ?0 c 25 c i ol (ma) v ol (mv) 85 c v dd = 5.0 v v ol (mv) i ol (ma) notes: 1. at v dd = 5.0 v, devices are specified and tested for v ol 800 mv @ i ol = 10.0 ma. 2. at v dd = 3.3 v, devices are specified and tested for v ol 500 mv @ i ol = 3.5 ma. 0 100 200 300 400 500 600 700 800 0102030 ?0 c 25 c 85 c v dd = 3.3 v 0 100 200 300 400 500 600 700 800 0102030 ?0 c 25 c 85 c v dd = 5.0 v v ol (mv) v ol (mv) i ol (ma) i ol (ma)
electrical specifications typical supply currents mc68hc705kj1 rev. 2.0 technical data motorola electrical specifications 121 11.9 typical supply currents figure 11-5. typical operating i dd (25 c) 6.0 ma 5.0 ma 4.0 ma 3.0 ma 2.0 ma 1.0 ma 0 0 1.0 mhz 2.0 mhz 3.0 mhz 4.0 mhz 3.0 v 4.5 v 3.6 v 5.5 v supply current (i dd ) internal operating frequency (f op ) notes: 1. at v dd = 5.0 v, devices are specified and tested for i dd 7.0 ma @ f op = 4.0 mhz. 2. at v dd = 3.3 v, devices are specified and tested for i dd 4.25 ma @ f op = 2.1 mhz. see note 1 see note 2 7.0 ma
technical data mc68hc705kj1 rev. 2.0 122 electrical specifications motorola electrical speci?ations figure 11-6. typical wait mode i dd (25 c) 11.10 eprom programming characteristics characteristic (1) 1. v dd = 5.0 vdc 10%, v ss = 0 vdc, t a = 40 c to +85 c, unless otherwise noted. symbol min typ max unit programming voltage irq/v pp v pp 16.0 16.5 17.0 v programming current irq/v pp i pp 3.0 10.0 ma programming time per array byte mor t epgm t mpgm 4 4 ms 700 a 600 a 500 a 400 a 300 a 200 a 100 a 0 0 1.0 mhz 2.0 mhz 3.0 mhz 4.0 mhz 3.0 v 4.5 v 3.6 v 5.5 v supply current (i dd ) internal operating frequency (f op ) notes: 1. at v dd = 5.0 v, devices are specified and tested for i dd 3.25 ma @ f op = 4.0 mhz. 2. at v dd = 3.3 v, devices are specified and tested for i dd 1.75 ma @ f op = 2.1 mhz. see note 1 see note 2
electrical specifications control timing mc68hc705kj1 rev. 2.0 technical data motorola electrical specifications 123 11.11 control timing table 11-2. control timing (v dd = 5.0 vdc) (1) 1. v dd = 5.0 vdc 10%, v ss = 0 vdc, t a = 40 c to +85 c, unless otherwise noted. characteristic symbol min max unit oscillator frequency crystal oscillator option external clock source f osc dc 8.0 8.0 mhz internal operating frequency (f osc 2) crystal oscillator external clock f op dc 4.0 4.0 mhz cycle time (1 f op ) t cyc 250 ns reset pulse width low t rl 1.5 t cyc irq interrupt pulse width low (edge-triggered) t ilih 1.5 t cyc irq interrupt pulse width low (edge- and level-triggered) t ilil 1.5 note (2) 2. the maximum width t ilil or t ilih should not be more than the number of cycles it takes to execute the interrupt service routine plus 19 t cyc or the interrupt service routine will be re-entered. t cyc pa0?a3 interrupt pulse width high (edge-triggered) t ihil 1.5 t cyc pa0?a3 interrupt pulse width (edge- and level-triggered) t ihih 1.5 note (2) t cyc osc1 pulse width t oh , t ol 100 ns
technical data mc68hc705kj1 rev. 2.0 124 electrical specifications motorola electrical speci?ations table 11-3. control timing (v dd = 3.3 vdc) (1) 1. v dd = 3.3 vdc 10%, v ss = 0 vdc, t a = 40 c to +85 c, unless otherwise noted. characteristic symbol min max unit oscillator frequency crystal oscillator option external clock source f osc dc 4.2 4.2 mhz internal operating frequency (f osc 2) crystal oscillator external clock f op dc 2.1 2.1 mhz cycle time (1 f op ) t cyc 476 ns reset pulse width low t rl 1.5 t cyc irq interrupt pulse width low (edge-triggered) t ilih 1.5 t cyc irq interrupt pulse width low (edge- and level-triggered) t ilil 1.5 note (2) 2. the maximum width t ilil or t ilih should not be more than the number of cycles it takes to execute the interrupt service routine plus 19 t cyc or the interrupt service routine will be re-entered. t cyc pa0?a3 interrupt pulse width high (edge-triggered) t ihil 1.5 t cyc pa0?a3 interrupt pulse width (edge- and level-triggered) t ihih 1.5 note (2) t cyc osc1 pulse width t oh , t ol 200 ns
electrical specifications control timing mc68hc705kj1 rev. 2.0 technical data motorola electrical specifications 125 figure 11-7. external interrupt timing figure 11-8. stop mode recovery timing irq (internal) t ilih t ilil t ilih irq pin irq 1 irq n . . . t ilih oscillator stabilization delay (5) osc (note 1) t rl reset irq (note 2) irq (note 3) internal clock internal address bus notes: 1. internal clocking from osc1 pin 2. edge-triggered external interrupt mask option 3. edge- and level-triggered external interrupt mask option 4. reset vector shown as example reset or interrupt vector fetch 07fe 07fe 07fe 07fe 07fe 07ff (note 4) 5. 4064 t cyc or 128 t cyc , depending on the state of soscd bit in mor
technical data mc68hc705kj1 rev. 2.0 126 electrical specifications motorola electrical speci?ations figure 11-9. power-on reset timing figure 11-10. external reset timing 07fe oscillator stabilization delay (3) v dd osc1 pin internal clock internal address bus notes: internal data bus 07fe 07fe 07fe 07fe 07fe 07ff (note 1) 1. power-on reset threshold is typically between 1 v and 2 v. 2. internal clock, internal address bus, and internal data bus are not available externally. new pch new pcl 3. 4064 t cyc or 128 t cyc depending on the state of soscd bit in mor internal clock internal address bus notes: internal data bus 07fe 07fe 07fe 07fe 07ff new pc 1. internal clock, internal address bus, and internal data bus are not available externally. 2. the next rising edge of the internal clock after the rising edge of reset initiates the reset sequence. new pch t rl new pc new pcl dummy op code
mc68hc705kj1 rev. 2.0 technical data motorola mechanical specifications 127 technical data ?mc68hc705kj1 section 12. mechanical specifications 12.1 contents 12.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127 12.2.1 16-pin pdip ?case #648. . . . . . . . . . . . . . . . . . . . . . . . .128 12.2.2 16-pin soic ?case #751g . . . . . . . . . . . . . . . . . . . . . . .128 12.2.3 16-pin cerdip ?case #620a . . . . . . . . . . . . . . . . . . . . . .129 12.2 introduction the mc68hc705j1a, the rc oscillator, and low-speed option devices described in appendix a. mc68hrc705kj1 and appendix b. mc68hlc705kj1 are available in these packages: 648 ?plastic dual in-line package (pdip) 751g ?small outline integrated circuit (soic) 620a ?ceramic dip (cerdip) (windowed) the following figures show the latest packages at the time of this publication. to make sure that you have the latest package specifications, contact one of the following: local motorola sales office motorola mfax phone 602-244-6609 email rmfax0@email.sps.mot.com world-wide web (wwweb) at http://motorola.com/sps/ follow mfax or world-wide web on-line instructions to retrieve the current mechanical specifications.
technical data mc68hc705kj1 rev. 2.0 128 mechanical specifications motorola mechanical speci?ations 12.2.1 16-pin pdip ?case #648 12.2.2 16-pin soic ?case #751g notes: 1. dimensioning and tolerancing per ansi y14.5m, 1982. 2. controlling dimension: inch. 3. dimension l to center of leads when formed parallel. 4. dimension b does not include mold flash. 5. rounded corners optional. a b f c s h g d j l m 16 pl seating 18 9 16 k plane t m a m 0.25 (0.010) t dim min max min max millimeters inches a 0.740 0.770 18.80 19.55 b 0.250 0.270 6.35 6.85 c 0.145 0.175 3.69 4.44 d 0.015 0.021 0.39 0.53 f 0.040 0.70 1.02 1.77 g 0.100 bsc 2.54 bsc h 0.050 bsc 1.27 bsc j 0.008 0.015 0.21 0.38 k 0.110 0.130 2.80 3.30 l 0.295 0.305 7.50 7.74 m 0 10 0 10 s 0.020 0.040 0.51 1.01     f j dim min max min max inches millimeters a 10.15 10.45 0.400 0.411 b 7.40 7.60 0.292 0.299 c 2.35 2.65 0.093 0.104 d 0.35 0.49 0.014 0.019 f 0.50 0.90 0.020 0.035 g 1.27 bsc 0.050 bsc j 0.25 0.32 0.010 0.012 k 0.10 0.25 0.004 0.009 m 0 7 0 7 p 10.05 10.55 0.395 0.415 r 0.25 0.75 0.010 0.029 m b m 0.010 (0.25) -a- -b- p 8x g 14x d 16x seating plane -t- s a m 0.010 (0.25) b s t 16 9 8 1 r x 45 m c k
mechanical specifications introduction mc68hc705kj1 rev. 2.0 technical data motorola mechanical specifications 129 12.2.3 16-pin cerdip case #620a notes: 1. dimensioning and tolerancing per asme y14.5m, 1994. 2. controlling dimension: inch. 3. dimension l to center of lead when formed parallel. 4. dimension f may narrow to 0.76 (0.030) where the lead enters the ceramic body. style 1: pin 1. cathode 2. cathode 3. cathode 4. cathode 5. cathode 6. cathode 7. cathode 8. cathode 9. anode 10. anode f e n k c seating plane a m 0.25 (0.010) t m l dim min max min max millimeters inches a 0.750 0.785 19.05 19.93 b 0.240 0.295 6.10 7.49 c 0.200 5.08 d 0.015 0.020 0.39 0.50 e 0.050 bsc 1.27 bsc f 0.055 0.065 1.40 1.65 g 0.100 bsc 2.54 bsc h 0.008 0.015 0.21 0.38 k 0.125 0.170 3.18 4.31 l 0.300 bsc 7.62 bsc m 0 15 0 15 n 0.020 0.040 0.51 1.01  a b a b 16 1 9 8 g 16x d b m 0.25 (0.010) t t 16x j
technical data mc68hc705kj1 rev. 2.0 130 mechanical specifications motorola mechanical speci cations
mc68hc705kj1 rev. 2.0 technical data motorola ordering information 131 technical data mc68hc705kj1 section 13. ordering information 13.1 contents 13.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131 13.3 mcu order numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131 13.2 introduction this section contains ordering information for the available package types. 13.3 mcu order numbers table 13-1 lists the mc order numbers. table 13-1. order numbers (1) 1. refer to appendix a. mc68hrc705kj1 and appendix b. mc68hlc705kj1 for order- ing information on optional low-speed and resistor-capacitor oscillator devices. package type case outline pin count operating temperature order number pdip 648 16 ?0 to +85 c mc68hc705kj1c (2) 2. c = extended temperature range soic 751g 16 ?0 to +85 c mc68hc705kj1cdw (3) 3. dw = small outline integrated circuit (soic) cerdip 620a 16 ?0 to +85 c mc68hc705kj1cs (4) 4. s = ceramic dual in-line package (cerdip)
technical data mc68hc705kj1 rev. 2.0 132 ordering information motorola ordering information
mc68hc705kj1 rev. 2.0 technical data motorola mc68hrc705kj1 133 technical data mc68hc705kj1 appendix a. mc68hrc705kj1 a.1 contents a.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133 a.3 rc oscillator connections . . . . . . . . . . . . . . . . . . . . . . . . . . .134 a.4 typical internal operating frequency for rc oscillator option . . . . . . . . . . . . . . . . . . . . . . . . . . . . .135 a.5 rc oscillator connections (no external resistor) . . . . . . . . .136 a.6 typical internal operating frequency versus temperature (no external resistor) . . . . . . . . . . . . . . . . . . . . . . . . . . . .137 a.7 package types and order numbers . . . . . . . . . . . . . . . . . . .138 a.2 introduction this appendix introduces the mc68hrc705kj1, a resistor-capacitor (rc) oscillator mask option version of the mc68hc705kj1. all of the information in mc68hc705kj1 technical data applies to the mc68hrc705kj1 with the exceptions given in this appendix.
technical data mc68hc705kj1 rev. 2.0 134 mc68hrc705kj1 motorola mc68hrc705kj1 a.3 rc oscillator connections for greater cost reduction, the rc oscillator mask option allows the configuration shown in figure a-1 to drive the on-chip oscillator. mount the rc components as close as possible to the pins for startup stabilization and to minimize output distortion. figure a-1. rc oscillator connections note: the optional internal resistor is not recommended for configurations that use the rc oscillator connections as shown in figure a-1 . for such configurations, the oscillator internal resistor (oscres) bit of the mask option register should be programmed to a logic 0. mcu v dd v ss c1 c2 osc1 osc2 r osc1 osc2 r
mc68hrc705kj1 typical internal operating frequency for rc oscillator option mc68hc705kj1 rev. 2.0 technical data motorola mc68hrc705kj1 135 a.4 typical internal operating frequency for rc oscillator option figure a-2 shows typical internal operating frequencies at 25 c for the rc oscillator option. note: tolerance for resistance is 50%. when selecting resistor size, consider the tolerance to ensure that the resulting oscillator frequency does not exceed the maximum operating frequency. figure a-2. typical internal operating frequency for various v dd at 25 c rc oscillator option only 0.01 0.1 1 10 1 10 100 1000 10000 resistance (k ? ) 5.5 v 5.0 v 4.5 v 3.6 v 3.0 v frequency (mhz)
technical data mc68hc705kj1 rev. 2.0 136 mc68hrc705kj1 motorola mc68hrc705kj1 a.5 rc oscillator connections (no external resistor) for maximum cost reduction, the rc oscillator mask connections shown in figure a-3 allow the on-chip oscillator to be driven with no external components. this can be accomplished by programming the oscillator internal resistor (oscres) bit in the mask option register to a logic 1. when programming the oscres bit for the mc68hsr705kj1, an internal resistor is selected which yields typical internal oscillator frequencies as shown in figure a-4 . the internal resistance for this device is different than the resistance of the selectable internal resistor on the mc68hc705kj1 and the mc68hsc705kj1 devices. figure a-3. rc oscillator connections (no external resistor) mcu v dd v ss c1 c2 osc1 osc2 osc1 osc2 r (external connections left open)
mc68hrc705kj1 typical internal operating frequency versus temperature (no external resistor) mc68hc705kj1 rev. 2.0 technical data motorola mc68hrc705kj1 137 a.6 typical internal operating frequency versus temperature (no external resistor) figure a-4. typical internal operating frequency versus temperature (oscres bit = 1) note: due to process variations, operating voltages, and temperature requirements, the internal resistance and tolerance are unspecified. typically for a given voltage and temperature, the frequency should not vary more than 500 khz. however, this data is not guaranteed. it is the user? responsibility to ensure that the resulting internal operating frequency meets user? requirements. 3.0 v 3.6 v 4.5 v 5.0 v 5.5 v frequency (mhz) temperature ( c) 3.00 2.50 2.00 1.50 1.00 0.50 0.00 50 0 50 100 150
technical data mc68hc705kj1 rev. 2.0 138 mc68hrc705kj1 motorola mc68hrc705kj1 a.7 package types and order numbers table a-1. mc68hrc705kj1 (rc oscillator option) order numbers (1) 1. refer to section 13. ordering information for standard part ordering information. package type case outline pin count operating temperature order number pdip 648 16 ?0 to +85 c mc68hrc705kj1c (2) p (3) 2. c = extended temperature range 3. p = plastic dual in-line package (pdip) soic 751g 16 ?0 to +85 c mc68hrc705kj1cdw (4) 4. dw = small outline integrated circuit (soic) cerdip 620a 16 ?0 to +85 c mc68hrc705kj1cs (5) 5. s = ceramic dual in-line package (cerdip)
mc68hc705kj1 rev. 2.0 technical data motorola mc68hlc705kj1 139 technical data mc68hc705kj1 appendix b. mc68hlc705kj1 b.1 contents b.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139 b.3 dc electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . .139 b.4 package types and order numbers . . . . . . . . . . . . . . . . . . .140 b.2 introduction this appendix introduces the mc68hlc705kj1, a low-frequency version of the mc68hc705kj1 optimized for 32-khz oscillators. all of the information in mc68hc705kj1 technical data applies to the mc68hlc705kj1 with the exceptions given in this appendix. b.3 dc electrical characteristics table b-1. dc electrical characteristics (v dd = 5 v) characteristic symbol min typ max unit supply current (f op = 16.0 khz, f osc = 32.0 khz) run wait i dd 45 20 60 30 a table b-2. dc electrical characteristics (v dd = 3.3 v) characteristic symbol min typ max unit supply current (f op = 16.0 khz, f osc = 32.0 khz) run wait i dd 25 10 35 15 a
technical data mc68hc705kj1 rev. 2.0 140 mc68hlc705kj1 motorola mc68hlc705kj1 figure b-1. crystal connections note: supply current is impacted by crystal type and external components. since each crystal has its own characteristics, the user should consult the crystal manufacturer for appropriate values for external components. b.4 package types and order numbers mcu r p r s osc1 32 khz c l c l table b-3. mc68hlc705kj1 (high speed) order numbers (1) 1. refer to section 13. ordering information for standard part ordering information. package type case outline pin count operating temperature order number pdip 648 16 ?0 to +85 c MC68HLC705KJ1C (2) p 2. c = extended temperature range soic 751g 16 ?0 to +85 c MC68HLC705KJ1Cdw (3) 3. dw = small outline integrated circuit (soic) cerdip 620a 16 ?0 to +85 c MC68HLC705KJ1Cs (4) 4. s = ceramic dual in-line package (cerdip)
mc68hc705kj1 rev. 2.0 technical data book please help us to continue improving the quality and usefulness of our data books by completing this form and sending your comments to us. you can return the form by mail or fax it to 512-891-3236. thank you for your help and continued support! 1. how do you rate the quality of this data book? 2. are you able to find the information you need easily? 3. what are your recommendations for making this data book more useful? 4. what additional information would you like to see included in future data books? high low high low organization tables readability table of contents accuracy page size/binding figures overall impression ye s n o
first: cut along this line to remove motorola 6501 william cannon drive west mail stop oe17 austin, texas 78735-8598 attention: mmd publications department second: fold back along this line please supply the following information (optional). name: ____________________________________________________________ company name: ____________________________________________________ title: ______________________________________________________________ address:___________________________________________________________ city: __________________________________________state:______zip:_______ phone number: _____________________________________________________ usa please paste postage here

motorola reserves the right to make changes without further notice to any products herein. motorola makes no warranty, representation or guarantee r egarding the suitability of its products for any particular purpose, nor does motorola assume any liability arising out of the application or use of any product or circuit, and speci?cally disclaims any and all liability, including without limitation consequential or incidental damages. "typical" parameters which may be provided in motorola data sheets and/or speci?cations can and do vary in different applications and actual performance may vary over time. all operating paramet ers, including "typicals" must be validated for each customer application by customer's technical experts. motorola does not convey any license under it s patent rights nor the rights of others. motorola products are not designed, intended, or authorized for use as components in systems intended for surgical im plant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the motorola product could cre ate a situation where personal injury or death may occur. should buyer purchase or use motorola products for any such unintended or unauthorized application, buyer s hall indemnify and hold motorola and its of?cers, employees, subsidiaries, af?liates, and distributors harmless against all claims, costs, damages, an d expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unautho rized use, even if such claim alleges that motorola was negligent regarding the design or manufacture of the part. motorola and are registered trademarks of motorola, inc. motorola, inc. is an equal opportunity/af?rmative action employer. how to reach us: usa/europe/locations not listed: motorola literature distribution, p.o. box 5405, denver, colorado 80217. 1-800-441-2447 or 1-303-675-2140. customer focus center, 1-800-521-6274 japan: motorola japan ltd.: spd, strategic planning of?ce, 141, 4-32-1 nishi-gotanda, shinagawa-ku, tokyo, japan, 03-5487-8488 asia/pacific: motorola semiconductors h.k. ltd., silicon harbour centre, 2 dai king street, tai po industrial estate, tai po, new territories, hong kong, 852-26629298 mfax?, motorola fax back system: rmfax0@email.sps.mot.com; http://sps.motorola.com/mfax/; touchtone, 1-602-244-6609; us and canada only, 1-800-774-1848 home page: http://motorola.com/sps/ mc68hc705kj1/d


▲Up To Search▲   

 
Price & Availability of MC68HLC705KJ1C

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X